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.

11 lines 327 B
import type { Guard } from "../types"; export interface NumberConstraints { min?: number; max?: number; integer?: boolean; positive?: boolean; negative?: boolean; finite?: boolean; } export declare function isNumber(constraints?: NumberConstraints): Guard<number>; //# sourceMappingURL=isNumber.d.ts.map