misskey/src/prelude/relation.ts

4 lines
101 B
TypeScript

export type Relation<T, U> = (x: T, y: U) => boolean;
export type EndoRelation<T> = Relation<T, T>;