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
It would be interesting to have a type that includes all the events defined in the IOMP interface and is exported, so that we can benefit from autocomplete for the event names easily when creating our functions, decorators, or others.
Example:
export type ServerEvents = 'resourceStart' | 'playerGiveDamageActor'...
function Decorator(eventName: ServerEvents) {
omp.on(eventName, target);
}
The text was updated successfully, but these errors were encountered:
It would be interesting to have a type that includes all the events defined in the IOMP interface and is exported, so that we can benefit from autocomplete for the event names easily when creating our functions, decorators, or others.
Example:
The text was updated successfully, but these errors were encountered: