UNPKG

@frauschert/ts-guard

Version:

ts-guard is a typescript library that provides composable type guards. Its inspired by zod but focusses only on type guards and is more lightweight.

4 lines 183 B
import { Guard } from "../types"; declare const isOptional: <T>(guard: Guard<T>) => (x: unknown) => x is T | undefined; export { isOptional }; //# sourceMappingURL=isOptional.d.ts.map