File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { validateNode } from "./validateNode";
1818import { hasProperty } from "./utils/hasProperty" ;
1919import { getNode } from "./getNode" ;
2020import { getNodeChild } from "./getNodeChild" ;
21+ import { DataNode } from "./methods/toDataNodes" ;
2122
2223const { DYNAMIC_PROPERTIES , REGEX_FLAGS } = settings ;
2324
@@ -435,7 +436,7 @@ export const SchemaNodeMethods = {
435436 /**
436437 * @returns a list of values (including objects and arrays) and their corresponding JSON Schema as SchemaNode
437438 */
438- toDataNodes ( data : unknown , pointer ?: string ) {
439+ toDataNodes ( data : unknown , pointer ?: string ) : DataNode [ ] {
439440 const node = this as SchemaNode ;
440441 return node . context . methods . toDataNodes ( node , data , pointer ) ;
441442 } ,
You can’t perform that action at this time.
0 commit comments