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.

7 lines 296 B
import { Guard } from "../types"; type PropertyGuards<A extends Record<string, unknown>> = { [K in keyof A]: Guard<A[K]>; }; declare const isObject: <T extends Record<string, unknown>>(propertyGuards: PropertyGuards<T>) => Guard<T>; export { isObject }; //# sourceMappingURL=isObject.d.ts.map