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

6 lines (5 loc) 382 B
import type { BaseMessage } from './utils.js'; import type { ValidateFn } from '../common/utils.js'; import { MessageType, ErrorCode } from './utils.js'; export type CallError = BaseMessage<MessageType.CALLERROR | MessageType.CALLRESULTERROR, [code: ErrorCode, description: string, details: Record<string, any>]>; export declare const validateCallError: ValidateFn<any, CallError>;