终于可以方便的给 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
终于可以方便的给 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