File tree Expand file tree Collapse file tree
packages/event-bus-plugin Expand file tree Collapse file tree 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
44
55## General Usage
66
7- ``` tsx
7+ ``` tsx
88import { TanstackDevtoolsEventSubscription } from ' @tanstack/devtools-event-bus-plugin'
99
1010interface EventMap {
1111 ' query-devtools:a' : { foo: string }
1212 ' query-devtools:b' : { foo: number }
13- }
13+ }
1414
1515class QueryDevtoolsPlugin extends TanstackDevtoolsEventSubscription <EventMap > {
1616 constructor () {
@@ -23,8 +23,8 @@ class QueryDevtoolsPlugin extends TanstackDevtoolsEventSubscription<EventMap> {
2323export const queryPlugin = new QueryDevtoolsPlugin ()
2424
2525// I'm fully typed here
26- plugin .emit (" a " , {
27- foo: " bar"
26+ plugin .emit (' a ' , {
27+ foo: ' bar' ,
2828})
2929plugin .on (' b' , (e ) => {
3030 // I'm fully typed here
You can’t perform that action at this time.
0 commit comments