fix: message.loading return hide type (#28362)

This commit is contained in:
偏右 2020-12-15 14:52:17 +08:00 committed by GitHub
parent a08eb587c4
commit a3a64dca73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -23,4 +23,9 @@ describe('message.typescript', () => {
},
);
});
it('hide', () => {
const hide = message.loading('doing...');
hide();
});
});

View File

@ -106,7 +106,9 @@ export interface ThenableArgument {
(val: any): void;
}
export interface MessageType extends PromiseLike<any> {}
export interface MessageType extends PromiseLike<any> {
(): void;
}
const typeToIcon = {
info: InfoCircleFilled,