Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
534254884 opened this issue Jun 12, 2024 · 1 comment
Open

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

534254884 opened this issue Jun 12, 2024 · 1 comment

Comments

@534254884
Copy link

534254884 commented Jun 12, 2024

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

@534254884 534254884 changed the title Why are 'child' and 'container' always empty in JsonNode? Why are 'child' and 'container' always undefined in JsonNode? Jun 12, 2024
@streamich
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants