Skip to content

Commit 6bcb6e9

Browse files
committed
fix: issue #87
1 parent b2a671a commit 6bcb6e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SchemaNode.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { validateNode } from "./validateNode";
1818
import { hasProperty } from "./utils/hasProperty";
1919
import { getNode } from "./getNode";
2020
import { getNodeChild } from "./getNodeChild";
21+
import { DataNode } from "./methods/toDataNodes";
2122

2223
const { 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
},

0 commit comments

Comments
 (0)