Skip to content

Commit

Permalink
Swap CatName and CatInfo definitions in Record example (#3010)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanKaplanSES authored Jun 5, 2024
1 parent bfb5f23 commit d397d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/documentation/copy/en/reference/Utility Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<CatName, CatInfo> = {
miffy: { age: 10, breed: "Persian" },
boris: { age: 5, breed: "Maine Coon" },
Expand Down

0 comments on commit d397d33

Please sign in to comment.