diff --git a/packages/core/src/storage.ts b/packages/core/src/storage.ts index 2d218d838a..cd3db72a07 100644 --- a/packages/core/src/storage.ts +++ b/packages/core/src/storage.ts @@ -48,7 +48,14 @@ export type DocumentQuery = { /** * @public */ -export type Refs = Partial>>> +export type ToClassRef = { + [P in keyof T]?: T[P] extends Ref ? Ref> : never +} + +/** + * @public + */ +export type Refs = ToClassRef>>> /** * @public diff --git a/plugins/task-resources/src/components/Tasks.svelte b/plugins/task-resources/src/components/Tasks.svelte index 10dae42c83..a0a28851aa 100644 --- a/plugins/task-resources/src/components/Tasks.svelte +++ b/plugins/task-resources/src/components/Tasks.svelte @@ -14,7 +14,7 @@ -->
@@ -47,14 +54,7 @@ {:else}