From d397d336edb8b2390f1fb196daaa0ed7009ac858 Mon Sep 17 00:00:00 2001 From: Daniel Kaplan Date: Wed, 5 Jun 2024 11:00:34 -0700 Subject: [PATCH] Swap CatName and CatInfo definitions in Record example (#3010) --- packages/documentation/copy/en/reference/Utility Types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/documentation/copy/en/reference/Utility Types.md b/packages/documentation/copy/en/reference/Utility Types.md index b7b98c4de3a3..cdd36db38c70 100644 --- a/packages/documentation/copy/en/reference/Utility Types.md +++ b/packages/documentation/copy/en/reference/Utility Types.md @@ -140,13 +140,13 @@ Constructs an object type whose property keys are `Keys` and whose property valu ##### Example ```ts twoslash +type CatName = "miffy" | "boris" | "mordred"; + interface CatInfo { age: number; breed: string; } -type CatName = "miffy" | "boris" | "mordred"; - const cats: Record = { miffy: { age: 10, breed: "Persian" }, boris: { age: 5, breed: "Maine Coon" },