jsoneditor: Add 'schemaRefs' option (#27474)

* Add 'schemaRefs' option

* reference new version

* fix comment
This commit is contained in:
Errietta Kostala
2018-07-23 08:29:54 -07:00
committed by Andy
parent fbe2d02cb2
commit 23735e51b7
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for jsoneditor v5.5.7
// Type definitions for jsoneditor v5.19.0
// Project: https://github.com/josdejong/jsoneditor
// Definitions by: Alejandro Sánchez <https://github.com/alejo90>
// Errietta Kostala <https://github.com/errietta>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="ace" />
@@ -28,6 +29,7 @@ declare module 'jsoneditor' {
modes?: Array<JSONEditorMode>;
name?: string;
schema?: Object;
schemaRefs?: Object;
search?: boolean;
indentation?: number;
theme?: string;
+1
View File
@@ -17,6 +17,7 @@ options = {
modes: ['tree', 'view', 'form', 'code', 'text'],
name: 'foo',
schema: {},
schemaRefs: { "otherSchema": {}},
search: false,
indentation: 2,
theme: 'default'