File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/event-bus-plugin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ This package is still under active development and might have breaking changes i
4
4
5
5
## General Usage
6
6
7
- ``` tsx
7
+ ``` tsx
8
8
import { TanstackDevtoolsEventSubscription } from ' @tanstack/devtools-event-bus-plugin'
9
9
10
10
interface EventMap {
11
11
' query-devtools:a' : { foo: string }
12
12
' query-devtools:b' : { foo: number }
13
- }
13
+ }
14
14
15
15
class QueryDevtoolsPlugin extends TanstackDevtoolsEventSubscription <EventMap > {
16
16
constructor () {
@@ -23,8 +23,8 @@ class QueryDevtoolsPlugin extends TanstackDevtoolsEventSubscription<EventMap> {
23
23
export const queryPlugin = new QueryDevtoolsPlugin ()
24
24
25
25
// I'm fully typed here
26
- plugin .emit (" a " , {
27
- foo: " bar"
26
+ plugin .emit (' a ' , {
27
+ foo: ' bar' ,
28
28
})
29
29
plugin .on (' b' , (e ) => {
30
30
// I'm fully typed here
You can’t perform that action at this time.
0 commit comments