Browse Source

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

pull/28371/head
偏右 4 years ago
committed by GitHub
parent
commit
a3a64dca73
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      components/message/__tests__/type.test.tsx
  2. 4
      components/message/index.tsx

5
components/message/__tests__/type.test.tsx

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

4
components/message/index.tsx

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

Loading…
Cancel
Save