UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

10 lines 523 B
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