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.

9 lines 288 B
import type { Guard } from "../types"; export interface StringConstraints { minLength?: number; maxLength?: number; pattern?: RegExp; trim?: boolean; } export declare function isString(constraints?: StringConstraints): Guard<string>; //# sourceMappingURL=isString.d.ts.map