resolved circular type dependency

This commit is contained in:
Danya H 2024-06-13 02:25:04 +01:00
parent e412aff01b
commit 0520b869db

View File

@ -20,9 +20,9 @@ export type RageFW_ServerEvent =
*/
export type RageFW_ServerEventArguments<K extends RageFW_ServerEvent> =
K extends keyof RageFW_ICustomServerEvent
? Parameters<RageFW_ServerEventCallbackCustom<K>>
? Parameters<RageFW_ICustomServerEvent[K]>
: K extends keyof IServerEvents
? Parameters<RageFW_ServerEventCallbackNative<K>>
? Parameters<IServerEvents[K]>
: never
/**