fix: microchanges

This commit is contained in:
2024-09-11 23:53:23 +01:00
parent 1467bb65b0
commit 70df94afa2
5 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ export class Client {
eventName: EventName,
callback: RageFW_ClientCallback<EventName>,
): void {
rpc.register(eventName, data => {
return callback(data)
rpc.register(eventName, async data => {
return await callback(data)
})
}
+1 -1
View File
@@ -27,7 +27,7 @@ export type RageFW_ClientArgs<K extends RageFW_ClientEvent> =
*/
export type RageFW_ClientCallback<K extends RageFW_ClientEvent> = (
args: RageFW_ClientArgs<K>,
) => RageFW_ClientReturn<K>
) => Promise<RageFW_ClientReturn<K>>
/**
* Return type for an event, name of which you pass as a generic