unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
10 lines • 525 B
TypeScript
import type { ErrorObject } from 'ajv';
import { type SchemaId } from './index.js';
export interface ISchemaValidationErrors<S = SchemaId> {
schema: S;
errors: ErrorObject[];
}
export declare const addAjvSchema: (schemaObjects: any[]) => any;
export declare const validateSchema: <_S = SchemaId>(schema: SchemaId, data: unknown) => ISchemaValidationErrors<SchemaId> | undefined;
export declare const throwOnInvalidSchema: <_S = SchemaId>(schema: SchemaId, data: object) => void;
//# sourceMappingURL=validate.d.ts.map