From 846bbc1533502f01dccd83c4954525a3ff9cb49c Mon Sep 17 00:00:00 2001 From: Ihor Date: Wed, 13 Sep 2023 22:09:45 +0200 Subject: [PATCH] fix(typescript): fix template lineral type definition (#4474) --- .../content/112-advanced-types/103-template-literal-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/roadmaps/typescript/content/112-advanced-types/103-template-literal-types.md b/src/data/roadmaps/typescript/content/112-advanced-types/103-template-literal-types.md index ba380eac1..2838d25d9 100644 --- a/src/data/roadmaps/typescript/content/112-advanced-types/103-template-literal-types.md +++ b/src/data/roadmaps/typescript/content/112-advanced-types/103-template-literal-types.md @@ -5,7 +5,7 @@ Template literal types in TypeScript are a way to manipulate string values as ty For example, the following is a template literal type that concatenates two strings: ```typescript -type Name = `Mr. ` + string; +type Name = `Mr. ${string}`; let name: Name = `Mr. Smith`; // ok let name: Name = `Mrs. Smith`; // error