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 241 B
import { Primitive } from "../../types"; import { Guard } from "../types"; declare const isOneOf: <U extends Primitive, T extends readonly [U, ...U[]]>(values: T) => Guard<T[number]>; export { isOneOf }; //# sourceMappingURL=isOneOf.d.ts.map