@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"
19 lines • 598 B
TypeScript
import type { SchemaAdapter } from './adapter';
declare global {
var $PSchemasAdapter: SchemaAdapter | undefined;
}
/**
* Sets the default adapter to be used by all of your schemas.
*
* @param adapter - The adapter to use when you define schemas.
*/
export declare function setDefaultAdapter(adapter: SchemaAdapter): void;
/**
* Gets the default adapter to be used by all of your schemas.
*
* @throws {NoAdapterFoundError} - If no adapter has been set.
*
* @returns The default adapter.
*/
export declare function getDefaultAdapter(): SchemaAdapter;
//# sourceMappingURL=conf.d.ts.map