From 19a041e4106e35bf3078c28ecae15c5e13697ad1 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Mon, 11 Mar 2024 22:41:55 +0000 Subject: [PATCH] layout.d.ts: Fix ExtractIds --- typescript/types/layout.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/types/layout.d.ts b/typescript/types/layout.d.ts index 167ede29d..fc2e9f50d 100644 --- a/typescript/types/layout.d.ts +++ b/typescript/types/layout.d.ts @@ -3,7 +3,7 @@ type Prev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; type ExtractIds = [Depth] extends [never] ? never - : (T extends { id: infer Id extends string } + : (T extends { id?: infer Id extends string } ? { [k in Id]: T } : never) |