You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TwitchBronBron
changed the title
Support more specific component types in node fields
Support more specific types on component interface fields
Jul 25, 2024
Nice! A lot of options. I was thinking something way simpler though, and I just tried something and it worked!
<component name="MyComponent">
<interface>
<!-- someNode is supposed to be of type Label -->
<field id="label" type="node" />
</interface>
</component>
We can do something like
interface MyComponent extends roSGNodeMyComponent
label as roSGNodeLabel
end interface
And now I have a type that actually has better typing on the field
When we define component interfaces, we should support more specific types that can further improve the type system.
node
:Instead of
We could support
Instead of
Could be
and much more. There are many edge cases to work out here. We could start with component types, and expand upon it later.
The text was updated successfully, but these errors were encountered: