Skip to content

Commit 756164a

Browse files
chore(devtools): consistent casing of devtools types (#7971)
1 parent 804357b commit 756164a

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

packages/angular-query-devtools-experimental/src/angular-query-devtools.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {
2222
SimpleChanges,
2323
} from '@angular/core'
2424
import type {
25-
DevToolsErrorType,
25+
DevtoolsErrorType,
2626
TanstackQueryDevtools,
2727
} from '@tanstack/query-devtools'
2828

@@ -91,7 +91,7 @@ export class AngularQueryDevtools
9191
/**
9292
* Use this so you can define custom errors that can be shown in the devtools.
9393
*/
94-
@Input() errorTypes?: Array<DevToolsErrorType>
94+
@Input() errorTypes?: Array<DevtoolsErrorType>
9595

9696
@ViewChild('ref') ref!: ElementRef
9797

packages/query-devtools/src/Context.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type YPosition = 'top' | 'bottom'
77
export type DevtoolsPosition = XPosition | YPosition
88
export type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative'
99

10-
export interface DevToolsErrorType {
10+
export interface DevtoolsErrorType {
1111
/**
1212
* The name of the error.
1313
*/
@@ -27,7 +27,7 @@ export interface QueryDevtoolsProps {
2727
buttonPosition?: DevtoolsButtonPosition
2828
position?: DevtoolsPosition
2929
initialIsOpen?: boolean
30-
errorTypes?: Array<DevToolsErrorType>
30+
errorTypes?: Array<DevtoolsErrorType>
3131
shadowDOMTarget?: ShadowRoot
3232
}
3333

packages/query-devtools/src/Devtools.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ import {
6262
useTheme,
6363
} from './Context'
6464
import type {
65-
DevToolsErrorType,
6665
DevtoolsButtonPosition,
66+
DevtoolsErrorType,
6767
DevtoolsPosition,
6868
QueryDevtoolsProps,
6969
} from './Context'
@@ -1916,7 +1916,7 @@ const QueryDetails = () => {
19161916
promise?.catch(() => {})
19171917
}
19181918

1919-
const triggerError = (errorType?: DevToolsErrorType) => {
1919+
const triggerError = (errorType?: DevtoolsErrorType) => {
19201920
const error =
19211921
errorType?.initializer(activeQuery()!) ??
19221922
new Error('Unknown error from devtools')

packages/query-devtools/src/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import type {
77
} from '@tanstack/query-core'
88
import type { DevtoolsComponentType } from './Devtools'
99
import type {
10-
DevToolsErrorType,
1110
DevtoolsButtonPosition,
11+
DevtoolsErrorType,
1212
DevtoolsPosition,
1313
QueryDevtoolsProps,
1414
} from './Context'
1515
import type { Signal } from 'solid-js'
1616

17-
export type { DevtoolsButtonPosition, DevtoolsPosition, DevToolsErrorType }
17+
export type { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType }
1818
export interface TanstackQueryDevtoolsConfig extends QueryDevtoolsProps {
1919
styleNonce?: string
2020
shadowDOMTarget?: ShadowRoot
@@ -31,7 +31,7 @@ class TanstackQueryDevtools {
3131
#buttonPosition: Signal<DevtoolsButtonPosition | undefined>
3232
#position: Signal<DevtoolsPosition | undefined>
3333
#initialIsOpen: Signal<boolean | undefined>
34-
#errorTypes: Signal<Array<DevToolsErrorType> | undefined>
34+
#errorTypes: Signal<Array<DevtoolsErrorType> | undefined>
3535
#Component: DevtoolsComponentType | undefined
3636
#dispose?: () => void
3737

@@ -72,7 +72,7 @@ class TanstackQueryDevtools {
7272
this.#initialIsOpen[1](isOpen)
7373
}
7474

75-
setErrorTypes(errorTypes: Array<DevToolsErrorType>) {
75+
setErrorTypes(errorTypes: Array<DevtoolsErrorType>) {
7676
this.#errorTypes[1](errorTypes)
7777
}
7878

packages/react-query-devtools/src/devtools.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import * as React from 'react'
33
import { onlineManager, useQueryClient } from '@tanstack/react-query'
44
import { TanstackQueryDevtools } from '@tanstack/query-devtools'
55
import type {
6-
DevToolsErrorType,
76
DevtoolsButtonPosition,
7+
DevtoolsErrorType,
88
DevtoolsPosition,
99
} from '@tanstack/query-devtools'
1010
import type { QueryClient } from '@tanstack/react-query'
@@ -33,7 +33,7 @@ export interface DevtoolsOptions {
3333
/**
3434
* Use this so you can define custom errors that can be shown in the devtools.
3535
*/
36-
errorTypes?: Array<DevToolsErrorType>
36+
errorTypes?: Array<DevtoolsErrorType>
3737
/**
3838
* 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.
3939
*/

packages/solid-query-devtools/src/devtools.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { onlineManager, useQueryClient } from '@tanstack/solid-query'
1212
import { isServer } from 'solid-js/web'
1313
import { TanstackQueryDevtools } from '@tanstack/query-devtools'
1414
import type {
15-
DevToolsErrorType,
1615
DevtoolsButtonPosition,
16+
DevtoolsErrorType,
1717
DevtoolsPosition,
1818
} from '@tanstack/query-devtools'
1919
import type { QueryClient } from '@tanstack/solid-query'
@@ -43,7 +43,7 @@ interface DevtoolsOptions {
4343
/**
4444
* Use this so you can define custom errors that can be shown in the devtools.
4545
*/
46-
errorTypes?: Array<DevToolsErrorType>
46+
errorTypes?: Array<DevtoolsErrorType>
4747
/**
4848
* 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.
4949
*/

packages/svelte-query-devtools/src/Devtools.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import { onlineManager, useQueryClient } from '@tanstack/svelte-query'
55
import type { QueryClient } from '@tanstack/svelte-query'
66
import type {
7-
DevToolsErrorType,
87
DevtoolsButtonPosition,
8+
DevtoolsErrorType,
99
DevtoolsPosition,
1010
TanstackQueryDevtools,
1111
} from '@tanstack/query-devtools'
@@ -14,7 +14,7 @@
1414
export let buttonPosition: DevtoolsButtonPosition = 'bottom-right'
1515
export let position: DevtoolsPosition = 'bottom'
1616
export let client: QueryClient = useQueryClient()
17-
export let errorTypes: Array<DevToolsErrorType> = []
17+
export let errorTypes: Array<DevtoolsErrorType> = []
1818
export let styleNonce: string | undefined = undefined
1919
export let shadowDOMTarget: ShadowRoot | undefined = undefined
2020

packages/vue-query-devtools/src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type {
2-
DevToolsErrorType,
32
DevtoolsButtonPosition,
3+
DevtoolsErrorType,
44
DevtoolsPosition,
55
} from '@tanstack/query-devtools'
66
import type { QueryClient } from '@tanstack/vue-query'
@@ -29,7 +29,7 @@ export interface DevtoolsOptions {
2929
/**
3030
* Use this so you can define custom errors that can be shown in the devtools.
3131
*/
32-
errorTypes?: Array<DevToolsErrorType>
32+
errorTypes?: Array<DevtoolsErrorType>
3333
/**
3434
* 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.
3535
*/

0 commit comments

Comments
 (0)