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.

5 lines 232 B
import type { Guard, TypeOf } from "../types"; export declare function isTuple<T extends readonly [Guard<unknown>, ...Guard<unknown>[]]>(guards: T): Guard<{ [K in keyof T]: TypeOf<T[K]>; }>; //# sourceMappingURL=isTuple.d.ts.map