mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #46827 [@types/miniprogram] update callback fail object by @rockSandy
* feat: update callback fail object * feat: add tests
This commit is contained in:
parent
d0206325a4
commit
d62f53ba8c
6
types/miniprogram/index.d.ts
vendored
6
types/miniprogram/index.d.ts
vendored
@ -5,9 +5,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface AsyncCallbackFailObject {
|
||||
errCode: string;
|
||||
errorMessage: string;
|
||||
[key: string]: string;
|
||||
error: number;
|
||||
errorMessage?: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
interface AsyncCallback<T> {
|
||||
|
||||
@ -362,7 +362,12 @@ my.removeSavedFile({
|
||||
apFilePath: '',
|
||||
});
|
||||
|
||||
my.getLocation({});
|
||||
my.getLocation({
|
||||
fail(res) {
|
||||
res.error;
|
||||
res.errorMessage;
|
||||
}
|
||||
});
|
||||
|
||||
my.request({ url: '' });
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user