【发布时间】:2021-12-03 05:43:44
【问题描述】:
在流程中我通常使用以下内容
type A = {|
a: string
|}
// in another file, import type A
type B = {|
...A,
b: string,
|}
但是当我在 typescripts 中做类似的事情时,它给了我 `Member 'A' 隐含一个 'any' type.ts(7008)
type A = {
a: string
}
// in another file, import type A
type B = {
...A,
b: string,
}
我该怎么做才能做到这一点?谢谢。
【问题讨论】:
标签: typescript flowtype