From 63a27a21040c8ff7c9b50efd7e6e865e35cb7a61 Mon Sep 17 00:00:00 2001 From: Carson Full Date: Fri, 23 Feb 2024 20:19:09 -0600 Subject: [PATCH] Add specify ID kind in LinkTo --- src/core/resources/resource.loader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/resources/resource.loader.ts b/src/core/resources/resource.loader.ts index b3b18e3fa1..9086b0ee0d 100644 --- a/src/core/resources/resource.loader.ts +++ b/src/core/resources/resource.loader.ts @@ -18,7 +18,7 @@ type SomeResourceType = ValueOf; */ export interface PolymorphicLinkTo { __typename: Key; - id: ID; + id: ID; } /** @@ -30,7 +30,7 @@ export type LinkToUnknown = PolymorphicLinkTo; * A reference to a resource with a static / known type. */ export interface LinkTo { - id: ID; + id: ID; // Here for DX, and maybe type checking. // Won't be used at runtime. __typename?: Key;