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