typocomath/src/interfaces/predicate.ts

11 lines
291 B
TypeScript
Raw Normal View History

// Warning: a module must have something besides just a "declare module"
// section; otherwise it is ignored.
export type UnaryPredicate<T> = (a: T) => boolean
declare module "./type" {
2023-01-04 11:12:28 +00:00
interface Signatures<T> {
isReal: (a: T) => boolean
isSquare: (a: T) => boolean
}
}