.js.flow后缀文件是typescript?还是facebook搞出来的? - CNode技术社区

.js.flow后缀文件是typescript?还是facebook搞出来的?
发布于 5 年前 作者 xinggsf 3515 次浏览 来自 问答

落伍了哦:( https://github.com/github/fetch/blob/master/fetch.js.flow 中的代码:

type RequestOptions = {|
 body?: ?BodyInit;
 credentials?: CredentialsType;
 headers?: HeadersInit;
 method?: string;
 mode?: string;
 referrer?: string;
 signal?: ?AbortSignal;
|}

上面的类型定义{| ......|}什么用? body?: ?BodyInit; 第二个问号又作何解

谢谢

1 回复
回到顶部

AltStyle によって変換されたページ (->オリジナル) /