( configProtocol: 'http' | 'https', )
| 19 | } |
| 20 | |
| 21 | function getDefaultProtocol( |
| 22 | configProtocol: 'http' | 'https', |
| 23 | ): 'http' | 'https' { |
| 24 | if (typeof __TANSTACK_DEVTOOLS_PROTOCOL__ !== 'undefined') |
| 25 | return __TANSTACK_DEVTOOLS_PROTOCOL__ |
| 26 | return configProtocol |
| 27 | } |
| 28 | |
| 29 | interface TanStackDevtoolsEvent<TEventName extends string, TPayload = any> { |
| 30 | type: TEventName |