【发布时间】:2017-11-10 09:05:17
【问题描述】:
我看到ImmutableJS has flow type annotations now,但我该如何定义类型?例如:
const state : ??? = Immutable.fromJS({ name: 'chet', tags: ['something']})
我可以从普通的 JS 中定义类型,但如何说这是一个 Immutable.Map 与某些键?
【问题讨论】:
标签: javascript immutable.js flowtype