( method: T, args?: unknown, )
| 35 | : never; |
| 36 | |
| 37 | const invokePluginBridgeMethod = <T extends PluginInvokeMethod>( |
| 38 | method: T, |
| 39 | args?: unknown, |
| 40 | ): Promise<PluginMethodResult<T>> => { |
| 41 | return invokeWithNormalizedError(`plugins.${method}`, args) as Promise<PluginMethodResult<T>>; |
| 42 | }; |
| 43 | |
| 44 | const webSocket: WebSocketBridgeAPI = { |
| 45 | open: options => invokeWithNormalizedError('webSocket.open', options), |
no test coverage detected