paricafe/packages/backend/src/misc/prelude/relation.ts
2022-09-18 03:27:08 +09:00

5 lines
148 B
TypeScript

export type Predicate<T> = (a: T) => boolean;
export type Relation<T, U> = (a: T, b: U) => boolean;
export type EndoRelation<T> = Relation<T, T>;