mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Tests added
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/// <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"});
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Type definitions for jsonschema
|
||||
// Project: https://github.com/tdegrunt/jsonschema
|
||||
// Definitions by: Vlado Tešanovic https://github.com/vladotesanovic
|
||||
// Definitions by: Vlado Tešanovic <https://github.com/vladotesanovic>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
declare module "jsonschema" {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user