Skip to content

Commit 066bf2c

Browse files
committed
chore: fix typecheck
1 parent 0738d13 commit 066bf2c

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/rpc/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export function createRpcClient<
1616
...preset,
1717
timeout: -1,
1818
...rpcOptions,
19-
})
19+
} as BirpcOptions<ServerFunctions, ClientFunctions>)
2020
}

packages/rpc/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function createRpcServer<
1111
rpcOptions?: EventOptions<ClientFunctions>
1212
},
1313
): BirpcGroup<ClientFunctions, ServerFunctions> {
14-
const rpc = createBirpcGroup<ClientFunctions, ServerFunctions>(functions, [], options?.rpcOptions ?? {})
14+
const rpc = createBirpcGroup<ClientFunctions, ServerFunctions>(functions, [], (options?.rpcOptions ?? {}) as EventOptions<ClientFunctions, ServerFunctions>)
1515
options?.preset(rpc)
1616

1717
return rpc

packages/vite/src/app/components/data/ModuleImportRelationships.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ onMounted(() => {
151151
marginTop: `${importersVerticalOffset}px`,
152152
}"
153153
>
154-
<template v-for="(importer, i) of importers" :key="importer.id">
154+
<template v-for="(importer, i) of importers" :key="importer!.id">
155155
<DisplayModuleId
156156
:id="importer!.id"
157157
hover="bg-active" block px2 p1 bg-base ws-nowrap
@@ -186,7 +186,7 @@ onMounted(() => {
186186
marginTop: `${importsVerticalOffset}px`,
187187
}"
188188
>
189-
<template v-for="(_import, i) of module.imports" :key="_import.id">
189+
<template v-for="(_import, i) of module.imports" :key="_import.module_id">
190190
<DisplayModuleId
191191
:id="_import!.module_id"
192192
hover="bg-active" block px2 p1 bg-base ws-nowrap

packages/vite/src/app/state/settings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { RemovableRef } from '@vueuse/core'
12
import type { Ref } from 'vue'
23
import { useLocalStorage } from '@vueuse/core'
34
import { computed } from 'vue'
@@ -58,7 +59,7 @@ export const settings = useLocalStorage<ClientSettings>(
5859
},
5960
)
6061

61-
export function objectRefToRefs<T extends object>(obj: Ref<T>): {
62+
export function objectRefToRefs<T extends object>(obj: RemovableRef<T>): {
6263
[K in keyof T]: Ref<T[K]>
6364
} {
6465
const cache = new Map<keyof T, Ref<T[keyof T]>>()

0 commit comments

Comments
 (0)