我正在將流程添加到項目,並且遇到了一個我找不到的錯誤。下面是一些產生相同的錯誤代碼: type user = {
id: string,
};
const thing = function(): Promise<user> {
return new Promise(resolve => {
var p1 = new Promise(innerResolve =>
我得到一個流錯誤,下面的代碼,我很確定如何解決它。我得到的錯誤是: [flow] object type (This type is incompatible with undefined (too few arguments, expected default/rest parameters))
type Props = {
levels: {
image: string