UNPKG

@xylabs/typeof

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

3 lines 245 B
import type { TypeOfTypes } from './TypeOfTypes.ts'; export declare const ifTypeOf: <T, R>(typeName: TypeOfTypes, value: unknown, trueFunc: (value: T) => R, isFunc?: (value: T) => boolean) => R | undefined; //# sourceMappingURL=ifTypeOf.d.ts.map