(name, data)
| 47 | return { |
| 48 | ...transport, |
| 49 | async invoke(name, data) { |
| 50 | const result = await transport.invoke!({ |
| 51 | type: 'custom', |
| 52 | event: 'vite:invoke', |
| 53 | data: { |
| 54 | id: 'send', |
| 55 | name, |
| 56 | data, |
| 57 | } satisfies InvokeSendData, |
| 58 | } satisfies CustomPayload) |
| 59 | if ('error' in result) { |
| 60 | throw reviveInvokeError(result.error) |
| 61 | } |
| 62 | return result.result |
| 63 | }, |
| 64 | } |
| 65 | } |
| 66 |
nothing calls this directly
no test coverage detected