mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 10:35:22 +08:00
7 lines
263 B
TypeScript
7 lines
263 B
TypeScript
/// <reference path="jsonschema.d.ts" />
|
|
import { Validator, IJSONSchemaValidationError } from "jsonschema";
|
|
|
|
const v: Validator = new Validator();
|
|
|
|
const validationResults: { errors: Array<IJSONSchemaValidationError> } = v.validate("Smith", {"type": "string"});
|