| 12 | } |
| 13 | |
| 14 | export interface TanStackDevtoolsVueInit { |
| 15 | /** |
| 16 | * Array of plugins to be used in the devtools. |
| 17 | * Each plugin should have a `render` prop that returns a Vue component |
| 18 | * |
| 19 | * Example: |
| 20 | * ```vue |
| 21 | * <script setup lang="ts"> |
| 22 | * import { TanStackDevtools } from '@tanstack/vue-devtools' |
| 23 | * import { VueQueryDevtoolsPanel } from '@tanstack/vue-query-devtools' |
| 24 | * |
| 25 | * const plugins = [{ name: 'Vue Query', component: VueQueryDevtoolsPanel }] |
| 26 | * </script> |
| 27 | * |
| 28 | * <template> |
| 29 | * <TanStackDevtools |
| 30 | * :eventBusConfig="{ connectToServerBus: true }" |
| 31 | * :plugins="plugins" |
| 32 | * /> |
| 33 | * </template> |
| 34 | * ``` |
| 35 | */ |
| 36 | plugins?: Array<TanStackDevtoolsVuePlugin> |
| 37 | /** |
| 38 | * Configuration for the devtools shell. These configuration options are used to set the |
| 39 | * initial state of the devtools when it is started for the first time. Afterwards, |
| 40 | * the settings are persisted in local storage and changed through the settings panel. |
| 41 | */ |
| 42 | config?: Partial<TanStackDevtoolsConfig> |
| 43 | /** |
| 44 | * Configuration for the TanStack Devtools client event bus. |
| 45 | */ |
| 46 | eventBusConfig?: ClientEventBusConfig |
| 47 | } |
| 48 | |
| 49 | export type RenderArray = Array<{ |
| 50 | id: string |
nothing calls this directly
no outgoing calls
no test coverage detected