@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"
15 lines • 477 B
TypeScript
import type { Schema } from '../schema/schema';
/**
* This will convert a value from a number to any other type.
*
* @param callback
* @returns
*/
export declare function convertFromNumberBuilder(callback: (value: number) => Awaited<ReturnType<Parameters<Schema['__parsers']['high']['set']>[1]>>): (value: any) => {
value: any;
preventNextParsers: boolean;
} | {
value: any;
preventNextParsers: boolean;
};
//# sourceMappingURL=convert-from-number.d.ts.map