从流程的函数类型docs,返回的函数primitive type是这样的
primitive type
const a = aFunc = (id: number): number => id + 1。
const a = aFunc = (id: number): number => id + 1
但是,如何为返回函数的函数创建流类型?
const aFunc = (id: number): <what type?> => { return bFunc(a): void => console.log(a) }
javascript flowtype
flowtype ×1
javascript ×1