UNPKG

@palmares/schemas

Version:

This defines a default schema definition for validation of data, it abstract popular schema validation libraries like zod, yup, valibot and others"

10 lines 775 B
import type { BooleanSchema } from '../schema/boolean'; import type { NumberSchema } from '../schema/number'; import type { Schema } from '../schema/schema'; import type { StringSchema } from '../schema/string'; import type { ValidationFallbackReturnType } from '../schema/types'; export declare function optional(args: Schema['__optional']): ValidationFallbackReturnType; export declare function nullable(args: Schema['__nullable']): ValidationFallbackReturnType; export declare function checkType(args: NonNullable<Schema['__type']>): ValidationFallbackReturnType; export declare function is(args: NonNullable<BooleanSchema['__is']> | NonNullable<NumberSchema['__is']> | NonNullable<StringSchema['__is']>): ValidationFallbackReturnType; //# sourceMappingURL=schema.d.ts.map