getData2(user: string, guid: string) { //doing some当我按照上面列出的方法进行操作时,我得到了错误消息: Argument of type 'void' is not assignable to parameter of type '(value: {}) => {} | PromiseL
我有一个例子,我将resolve和reject Promise函数作为委托传递给另一个函数:someFunc(x, y, resolve, reject);Argument of type '(value?: any) => Promise<void>'.
类型'void‘不能赋值给类型'Promise’。: Promi
如何推断传递给构造函数(TS Playground)的函数类型?) => resolveReject = rs) 但是它给了我这个错误: Type '[resolve: (value: number | PromiseLike<number>) => void, rejectType '(value: number | PromiseLike<number>) => void' is not ass
但是,当我尝试使用rxjs的Observable.fromPromise()方法时,会出现一个错误。Argument of type 'firebase.Promise<any>' is not assignable to parameter of type 'Promise<any>'.(value:
any) => TResult1 | PromiseLike<TResu
: any) => IteratorResult<Promise<void> | Promise<Result>>' is not assignable to type '(value?: any) => IteratorResult<void | PromiseLike<void>>'.: ((reason: any) => TResult2 | Pro