mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
chore: Definition message.config type (#38723)
* chore: message config ts * chore: message config test case
This commit is contained in:
parent
77ea4038d1
commit
39689bd81c
@ -61,7 +61,7 @@ describe('message.config', () => {
|
||||
expect(div.querySelector('.ant-message')).toBeTruthy();
|
||||
|
||||
message.config({
|
||||
getContainer: null,
|
||||
getContainer: undefined,
|
||||
});
|
||||
|
||||
document.body.removeChild(div);
|
||||
@ -89,7 +89,7 @@ describe('message.config', () => {
|
||||
expect(document.querySelectorAll('.ant-message-notice')).toHaveLength(0);
|
||||
|
||||
message.config({
|
||||
maxCount: null,
|
||||
maxCount: undefined,
|
||||
});
|
||||
});
|
||||
|
||||
@ -124,7 +124,7 @@ describe('message.config', () => {
|
||||
expect(document.querySelector('.light-message-move-up')).toBeTruthy();
|
||||
|
||||
message.config({
|
||||
prefixCls: null,
|
||||
prefixCls: undefined,
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -313,7 +313,7 @@ function destroy(key: React.Key) {
|
||||
const baseStaticMethods: {
|
||||
open: (config: ArgsProps) => MessageType;
|
||||
destroy: (key?: React.Key) => void;
|
||||
config: any;
|
||||
config: typeof setMessageGlobalConfig;
|
||||
useMessage: typeof useMessage;
|
||||
/** @private Internal Component. Do not use in your production. */
|
||||
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
||||
|
Loading…
Reference in New Issue
Block a user