typeScript 4.1 将支持 Template string types
資深大佬 : myCupOfTea 9
终于可以方便的给 dva 的 dispatch 写类型声明.呜呜
https://github.com/microsoft/TypeScript/pull/40336
type TempStr<T extends string> = `test${T}` type SuffixStr = "abc" const str : TempStr<SuffixStr> = "testabc";
可以这样写声明了 好期待什么时候正式发布 4.1
大佬有話說 (3)