mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-10-30 14:17:55 +00:00
fix typescript 4.7
This commit is contained in:
@@ -22,7 +22,7 @@ export type IpcEvent =
|
||||
IpcStopwatchAction
|
||||
|
||||
export type IpcEventPayload<Name extends IpcEvent['name'], T extends IpcEvent = IpcEvent> =
|
||||
T extends { name: Name } ? T['payload'] : never
|
||||
T extends { name: Name, payload: infer P } ? P : never
|
||||
|
||||
export type IpcGetConfig =
|
||||
Event<'OVERLAY->MAIN::get-config', Config>
|
||||
|
||||
Reference in New Issue
Block a user