Skip to content

Commit 9e62df2

Browse files
committed
fix: reuse types
1 parent 8048d9d commit 9e62df2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/devtools-utils/src/solid/class-mount-impl.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
import { lazy } from 'solid-js'
44
import { Portal, render } from 'solid-js/web'
5+
56
import type { JSX } from 'solid-js'
7+
import type { ThemeType } from '@tanstack/devtools-ui'
68

79
export function __mountComponent(
810
el: HTMLElement,
9-
theme: 'light' | 'dark',
11+
theme: ThemeType,
1012
importFn: () => Promise<{
11-
default: (props: { theme: 'light' | 'dark' }) => JSX.Element
13+
default: (props: { theme: ThemeType }) => JSX.Element
1214
}>,
1315
): () => void {
1416
const Component = lazy(importFn)

0 commit comments

Comments
 (0)