Skip to content

Commit 0d63459

Browse files
authored
docs(devtools): correct 'errorTypes' type to array (#10634)
docs(devtools): document errorTypes as array
1 parent c8e1bde commit 0d63459

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/framework/preact/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function App() {
7878
- The position of the Preact Query devtools panel
7979
- `client?: QueryClient`,
8080
- Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.
81-
- `errorTypes?: { name: string; initializer: (query: Query) => TError}`
81+
- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]`
8282
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
8383
- `styleNonce?: string`
8484
- 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.

docs/framework/solid/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function App() {
7878
- The position of the Solid Query devtools panel
7979
- `client?: QueryClient`,
8080
- Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.
81-
- `errorTypes?: { name: string; initializer: (query: Query) => TError}`
81+
- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]`
8282
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
8383
- `styleNonce?: string`
8484
- 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.

docs/framework/svelte/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Place the following code as high in your Svelte app as you can. The closer it is
7272
- The position of the Svelte Query devtools panel
7373
- `client?: QueryClient`,
7474
- Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.
75-
- `errorTypes?: { name: string; initializer: (query: Query) => TError}`
75+
- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]`
7676
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
7777
- `styleNonce?: string`
7878
- 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.

docs/framework/vue/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import { VueQueryDevtools } from '@tanstack/vue-query-devtools'
7373
- The position of the Vue Query devtools panel.
7474
- `client?: QueryClient`
7575
- Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.
76-
- `errorTypes?: { name: string; initializer: (query: Query) => TError}`
76+
- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]`
7777
- Use this to predefine some errors that can be triggered on your queries. The initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
7878
- `styleNonce?: string`
7979
- 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.

0 commit comments

Comments
 (0)