UNPKG

ts-essentials

Version:

All essential TypeScript types in one place

3 lines (2 loc) 226 B
import { PredicateFunction } from "../predicate-function"; export declare type PredicateType<Type extends PredicateFunction> = Type extends (target: any, ...rest: any[]) => target is infer NarrowedType ? NarrowedType : never;