Skip to content

Commit 161e847

Browse files
authored
fix(devtools-kit): explicitly type return type of useDevtoolsHostClient (#861)
1 parent bbfd37e commit 161e847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devtools-kit/src/runtime/host-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function onDevtoolsHostClientConnected(fn: (client: NuxtDevtoolsHostClien
3535
}
3636
}
3737

38-
export function useDevtoolsHostClient() {
38+
export function useDevtoolsHostClient(): Ref<NuxtDevtoolsHostClient | undefined> {
3939
if (!clientRef) {
4040
clientRef = shallowRef<NuxtDevtoolsHostClient | undefined>()
4141

0 commit comments

Comments
 (0)