summaryrefslogtreecommitdiff
path: root/packages/backend/src/misc/prelude/relation.ts
blob: 7dcd4c700a4a165b6105aab39266f20530a3b340 (plain)
1
2
3
4
5
6
7
8
9
10
/*
 * 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>;