From 0d63459555af4be67ae9927deb4ae8f55e51d1a6 Mon Sep 17 00:00:00 2001 From: Dami Oyeniyi Date: Tue, 5 May 2026 04:08:07 +0100 Subject: [PATCH] docs(devtools): correct 'errorTypes' type to array (#10634) docs(devtools): document errorTypes as array --- docs/framework/preact/devtools.md | 2 +- docs/framework/solid/devtools.md | 2 +- docs/framework/svelte/devtools.md | 2 +- docs/framework/vue/devtools.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/framework/preact/devtools.md b/docs/framework/preact/devtools.md index 25b16da9e6d..43bdc493dac 100644 --- a/docs/framework/preact/devtools.md +++ b/docs/framework/preact/devtools.md @@ -78,7 +78,7 @@ function App() { - The position of the Preact Query devtools panel - `client?: QueryClient`, - Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used. -- `errorTypes?: { name: string; initializer: (query: Query) => TError}` +- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]` - 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. - `styleNonce?: string` - 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. diff --git a/docs/framework/solid/devtools.md b/docs/framework/solid/devtools.md index fe11b1bca84..e43c79a0786 100644 --- a/docs/framework/solid/devtools.md +++ b/docs/framework/solid/devtools.md @@ -78,7 +78,7 @@ function App() { - The position of the Solid Query devtools panel - `client?: QueryClient`, - Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used. -- `errorTypes?: { name: string; initializer: (query: Query) => TError}` +- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]` - 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. - `styleNonce?: string` - 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. diff --git a/docs/framework/svelte/devtools.md b/docs/framework/svelte/devtools.md index efdb77e922d..179690c2a63 100644 --- a/docs/framework/svelte/devtools.md +++ b/docs/framework/svelte/devtools.md @@ -72,7 +72,7 @@ Place the following code as high in your Svelte app as you can. The closer it is - The position of the Svelte Query devtools panel - `client?: QueryClient`, - Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used. -- `errorTypes?: { name: string; initializer: (query: Query) => TError}` +- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]` - 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. - `styleNonce?: string` - 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. diff --git a/docs/framework/vue/devtools.md b/docs/framework/vue/devtools.md index 1dc8e678188..1392f2d2dc1 100644 --- a/docs/framework/vue/devtools.md +++ b/docs/framework/vue/devtools.md @@ -73,7 +73,7 @@ import { VueQueryDevtools } from '@tanstack/vue-query-devtools' - The position of the Vue Query devtools panel. - `client?: QueryClient` - Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used. -- `errorTypes?: { name: string; initializer: (query: Query) => TError}` +- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]` - 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. - `styleNonce?: string` - 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.