export type Predicate = (value: any) => value is T export type PredicateType = T extends (value: any) => value is infer U ? U : never