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