UNPKG
@evpower/ocpp-ts
Version:
latest (0.4.4)
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
OCPP 1.6: Open Charge Point Protocol
github.com/evpower-ai/ocpp-ts
@evpower/ocpp-ts
/
dist
/
src
/
impl
/
SchemaValidator.d.ts
12 lines
(11 loc)
•
265 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
Ajv
as
AjvInterface
}
from
'ajv'
;
export
declare
class
SchemaValidator
{
schema
:
any
;
private
validateFn;
static
ajv
:
AjvInterface
;
constructor
(
schema
:
object
);
/** *
@throws
{
OcppError
} */
validate
(
payload
:
any
):
void
; }