Skip to content
Source
Sign inSign up
TanStack/devtools
Open History to see the last commit

plugin.ts

25 lines444 Bytes

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 }
17class QueryDevtoolsPlugin extends EventClient<EventMap> {
18 constructor() {
19 super({
20 pluginId: 'query-devtools',
21 })
22 }
24​
25export const queryPlugin = new QueryDevtoolsPlugin()