use optional method in interface as type to array
i have this interface (notice how the methods are made optional)
i have this array
the problem with the type of the array is that it keeps the 'optional-ability' from the type of CharacterAdded. This is causing me problems elsewhere in the code. How can I essentially omit the optional part?
The current type of 'characterAddedFuncs':
I want it to be
2 Replies
NonNullable<Module["CharacterAdded"]>
thank you
that works