Open History to see the last commit
1import type {
2 DevtoolsButtonPosition,
3 DevtoolsErrorType,
4 DevtoolsPosition,
5} from '@tanstack/query-devtools'
6import type { QueryClient } from '@tanstack/vue-query'
7β
8export interface DevtoolsOptions {
9 /**
10 * Set this true if you want the dev tools to default to being open
11 */
12 initialIsOpen?: boolean
13 /**
14 * The position of the React Query logo to open and close the devtools panel.
15 * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
16 * Defaults to 'bottom-right'.
17 */
18 buttonPosition?: DevtoolsButtonPosition
19 /**
20 * The position of the React Query devtools panel.
21 * 'top' | 'bottom' | 'left' | 'right'
22 * Defaults to 'bottom'.
23 */
24 position?: DevtoolsPosition
25 /**
26 * Custom instance of QueryClient
27 */
28 client?: QueryClient
29 /**
30 * Use this so you can define custom errors that can be shown in the devtools.
31 */
32 errorTypes?: Array<DevtoolsErrorType>
33 /**
34 * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
35 */
36 styleNonce?: string
37 /**
38 * Use this so you can attach the devtool's styles to specific element in the DOM.
39 */
40 shadowDOMTarget?: ShadowRoot
41}