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 206 B
import { Primitive } from "../../types"; import { Guard } from "../types"; declare const isLiteral: <T extends Primitive>(value: T) => Guard<T>; export { isLiteral }; //# sourceMappingURL=isLiteral.d.ts.map