typocomath/src/interfaces/predicate.ts

3 lines
122 B
TypeScript

export type IsRealOp<T> = {op?: 'isReal', (a: T): boolean}
export type IsSquareOp<T> = {op?: 'isSquare', (a: T): boolean}