From caa2295f335568f772e3e43d44022a3948b98539 Mon Sep 17 00:00:00 2001 From: Daniel Kaplan Date: Tue, 9 Jan 2024 00:48:35 -0800 Subject: [PATCH] Swap CatName and CatInfo definitions in Record example - CatName and CatInfo were defined in one order but used in another. This made it difficult to read the example from top to bottom in a single pass. --- 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 dc4800115283..b395110703b5 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" },