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 221 B
import { Guard, TypeOf } from "../types"; declare const isUnion: <T extends readonly [Guard<unknown>, ...Guard<unknown>[]]>(guards: T) => Guard<TypeOf<T[number]>>; export { isUnion }; //# sourceMappingURL=isUnion.d.ts.map