From c5e4dbcc0659a7b287237e1ab07627ec641029ea Mon Sep 17 00:00:00 2001 From: Jonghwan Won Date: Sat, 23 Jul 2022 21:13:56 +0900 Subject: [PATCH] update type --- typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript.md b/typescript.md index 3b3e2c4796..f6194b0811 100644 --- a/typescript.md +++ b/typescript.md @@ -260,7 +260,7 @@ type Num = GetReturnType<() => number>; // number type First> = T extends [infer F, ...infer Rest] ? F : never; -type Str = First<['hello', 1, false]>; // string +type Str = First<['hello', 1, false]>; // 'hello' ``` ## Literal Type