mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix: message.loading return hide type (#28362)
This commit is contained in:
parent
a08eb587c4
commit
a3a64dca73
@ -23,4 +23,9 @@ describe('message.typescript', () => {
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
it('hide', () => {
|
||||
const hide = message.loading('doing...');
|
||||
hide();
|
||||
});
|
||||
});
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user