Open History to see the last commit
1import { EventClient } from '@tanstack/devtools-event-client'
2β
3interface EventMap {
4 test: {
5 title: string
6 description: string
7 }
8 init: {
9 title: string
10 description: string
11 }
12 query: {
13 title: string
14 description: string
15 }
16}
17class QueryDevtoolsPlugin extends EventClient<EventMap> {
18 constructor() {
19 super({
20 pluginId: 'query-devtools',
21 })
22 }
23}
24β
25export const queryPlugin = new QueryDevtoolsPlugin()