summaryrefslogtreecommitdiff
path: root/packages/backend/src/misc/prelude/relation.ts
blob: 3456c1a0bc4b9db827c2563f90a1750cc1cca105 (plain)
1
2
3
4
5
6
7
8
9
10
/*
 * SPDX-FileCopyrightText: syuilo and other misskey contributors
 * 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>;