1
0
forked from mirror/misskey
mi.moris.day/packages/backend/src/misc/prelude/relation.ts
2024-02-13 15:59:27 +00:00

11 lines
252 B
TypeScript

/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export type Predicate<T> = (a: T) => boolean;
export type Relation<T, U> = (a: T, b: U) => boolean;
export type EndoRelation<T> = Relation<T, T>;