TypeScript로 JSON Parser를 만들거나, document.querySelector 의 결과 타입을 추론사용가능regex compile되는 string type은 안나오나TS Template Literal Type UsagesTS Template Literal Type UnionTS Template Literal Type Example Template String Types as DiscriminantsAnnouncing TypeScript 4.5 BetaToday 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