我不知道如何让流程来处理许多类型的联合参数。 示例代码: // @flow
function foo(a: string | number[] | Date): string {
if (typeof a === 'string') {
return a.toUpperCase()
} else if (a instanceof Array) {
r
在一个文件中,我有我的类实现.. // person.js
class Person {
...
}
在另一个文件,我想用这种类型的... // job.js
class Job {
person: Person; // ERROR: Flow: identifier `Person`. Could not resolve name
https://flow.or