From e92cf3272a55471307992ffc3edc507f982556b9 Mon Sep 17 00:00:00 2001 From: Andrey Platov <87076238+aplatoff@users.noreply.github.com> Date: Mon, 17 Jan 2022 10:59:33 +0100 Subject: [PATCH] fix lookup options (#830) Signed-off-by: Andrey Platov --- packages/core/src/storage.ts | 9 ++++++++- .../task-resources/src/components/Tasks.svelte | 18 +++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) 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}