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
I've noticed you cannot create ServerFunctions within namespaces. It'll throw a type error:
TypeError: Type '{ SpawnUnit: ServerFunctionDefinition }' could not be converted into '{| [string]: ClientAsyncFunctionDefinition | ClientToServerEventDefinition | ServerAsyncFunctionDefinition | ServerToClientEventDefinition |}'
caused by:
Property 'SpawnUnit' is not compatible. Type 'ClientAsyncFunctionDefinition | ClientToServerEventDefinition | ServerAsyncFunctionDefinition | ServerToClientEventDefinition' could not be converted into 'ServerFunctionDefinition'
caused by:
Not all union options are compatible. Table type 'ServerToClientEventDefinition' not compatible with type 'ServerFunctionDefinition' because the former has extra field '__nominal_ServerToClientEventDefinition'
The text was updated successfully, but these errors were encountered:
synpixel
changed the title
Unable to create ServerFunctions inside namespaces
Unable to create ServerFunctions within namespaces
Apr 13, 2023
I've noticed you cannot create ServerFunctions within namespaces. It'll throw a type error:
The text was updated successfully, but these errors were encountered: