Skip to content

Commit b3eb71c

Browse files
committed
chore: share types
1 parent 2c03299 commit b3eb71c

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

packages/devtools-utils/bin/intent.js

100644100755
File mode changed.

packages/devtools-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"engines": {
7373
"node": ">=18"
7474
},
75+
"dependencies": {"@tanstack/devtools-ui": "workspace:*"},
7576
"peerDependencies": {
7677
"@types/react": ">=17.0.0",
7778
"preact": ">=10.0.0",

packages/devtools-utils/src/solid/class.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import type { ThemeType } from '@tanstack/devtools-ui'
12
import type { JSX } from 'solid-js'
23

4+
export type DevtoolProps = {theme: ThemeType}
5+
36
/**
47
* Constructs the core class for the Devtools.
58
* This utility is used to construct a lazy loaded Solid component for the Devtools.
@@ -10,7 +13,7 @@ import type { JSX } from 'solid-js'
1013
* @returns Tuple containing the DevtoolsCore class and a NoOpDevtoolsCore class
1114
*/
1215
export function constructCoreClass(
13-
importFn: () => Promise<{ default: () => JSX.Element }>,
16+
importFn: () => Promise<{ default: (props: DevtoolProps) => JSX.Element }>,
1417
) {
1518
class DevtoolsCore {
1619
#isMounted = false

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)