UNPKG

typed-ocpp

Version:

A library for type-aware parsing, serialization and validation of OCPP 1.6, OCPP 2.0 and OCPP 2.1 messages

8 lines (7 loc) 291 B
import type { JSONSchemaType } from 'ajv'; export interface AjvValidateFn { <T>(value: any, schema: JSONSchemaType<T>, prefix: string): value is T; errors: string[]; } export declare const validate: AjvValidateFn; export declare const compile: (schema: JSONSchemaType<any>) => void;