streamich / json-joy

JSON CRDT, JSON CRDT Patch, JSON Patch+, JSON Predicate, JSON Pointer, JSON Expression, JSON Type
https://jsonjoy.com/libs/json-joy-js
Apache License 2.0
697 stars 11 forks source link

Why are 'child' and 'container' always undefined in JsonNode? #640

Open 534254884 opened 3 weeks ago

534254884 commented 3 weeks ago

export interface JsonNode extends Identifiable { name(): string; view(): View; children(callback: (node: JsonNode) => void): void; child?(): JsonNode | undefined; container(): JsonNode | undefined; api: undefined | unknown; }

streamich commented 2 weeks ago

They are not always undefined. I think they are defined in val and vec nodes.