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
In C#, we are able to use the simplest and nice <T> as a shortcut and cleaner version of (T) or as to convert the Node into other class that is inherited to Node:
But in typescript, we are not allowed to write <T> or generics to get_node() like in C#. Instead, we use as to convert the Node into other class that is inherited to Node.
In C#, we are able to use the simplest and nice
<T>
as a shortcut and cleaner version of(T)
oras
to convert the Node into other class that is inherited to Node:But in typescript, we are not allowed to write
<T>
or generics toget_node()
like in C#. Instead, we useas
to convert the Node into other class that is inherited to Node.I'd make a workaround by editing the godot.d.ts but it would be nice if it's built-in to the module.
The text was updated successfully, but these errors were encountered: