fixes types

This commit is contained in:
Oleksandr Honcharov 2024-06-11 19:12:03 +03:00
parent 33ebdaac84
commit 23c1e6080a

View File

@ -51,7 +51,7 @@ class Server {
} else {
this.registerCustom(
eventName,
callback as RageFW_ServerEventCallbackCustom,
callback as unknown as RageFW_ServerEventCallbackCustom,
)
}
}
@ -69,7 +69,7 @@ class Server {
} else {
this.registerCustom(
eventName as keyof RageFW_ICustomServerEvent,
callback as RageFW_ServerEventCallbackCustom,
callback as unknown as RageFW_ServerEventCallbackCustom,
)
}
},