Skip to content

Commit 60b4416

Browse files
authored
refactor(preact-query-devtools): replace deprecated 'JSX.CSSProperties' with 'CSSProperties' from Preact namespace (TanStack#10622)
* refactor(preact-query-devtools): replace deprecated 'JSX.CSSProperties' with 'CSSProperties' from Preact namespace * chore(.changeset): add changeset for 'JSX.CSSProperties' refactor
1 parent bf2546f commit 60b4416

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/cyan-words-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/preact-query-devtools': patch
3+
---
4+
5+
refactor(preact-query-devtools): replace deprecated 'JSX.CSSProperties' with 'CSSProperties' from Preact namespace

packages/preact-query-devtools/src/PreactQueryDevtoolsPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { onlineManager, useQueryClient } from '@tanstack/preact-query'
33
import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'
44
import type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'
55
import type { QueryClient } from '@tanstack/preact-query'
6-
import type { JSX, VNode } from 'preact'
6+
import type { CSSProperties, VNode } from 'preact'
77

88
export interface DevtoolsPanelOptions {
99
/**
@@ -28,7 +28,7 @@ export interface DevtoolsPanelOptions {
2828
/**
2929
* Custom styles for the devtools panel container.
3030
*/
31-
style?: JSX.CSSProperties
31+
style?: CSSProperties
3232
/**
3333
* Callback function when the devtools panel is closed.
3434
*/

0 commit comments

Comments
 (0)