Skip to content

Conversation

@christian-byrne
Copy link
Contributor

Summary

The parentSubgraphNode property on widgets was typed as LGraphNode, which has private fields (#concreteInputs, #concreteOutputs). This caused TypeScript compilation failures in downstream projects when plain objects (without these private fields) were assigned to this property during deserialization.

This PR changes the type to NodeLike interface, which represents the shape of a node without requiring the private fields, allowing both actual LGraphNode instances and plain objects to be assigned without type errors.

Changed widget's parentSubgraphNode type from LGraphNode to NodeLike to fix TypeScript compilation issues in downstream projects. The private fields in LGraphNode make it impossible to assign plain objects during deserialization.
@christian-byrne christian-byrne merged commit 6f3f1f9 into master Jul 21, 2025
4 checks passed
@christian-byrne christian-byrne deleted the fix/widget-parent-subgraph-node-type branch July 21, 2025 06:18
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

Successfully merging this pull request may close these issues.

2 participants