TypeScript로 JSON Parser를 만들거나,
document.querySelector 의 결과 타입을 추론사용가능regex compile되는 string type은 안나오나
TS Template Literal Type Usages
Template String Types as Discriminants
Announcing TypeScript 4.5 Beta
Today we are excited to announce the beta release of TypeScript 4.5! To get started using the beta, you can get it through NuGet, or use npm with the following command: npm install typescript@beta You can also get editor support by Downloading for Visual Studio 2019/2017 Following directions for Visual Studio Code and Sublime Text 3.
https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#template-string-discriminants


Seonglae Cho