偏右
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
1 deletions
-
components/message/__tests__/type.test.tsx
-
components/message/index.tsx
|
@ -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; |
|
|
(val: any): void; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export interface MessageType extends PromiseLike<any> {} |
|
|
export interface MessageType extends PromiseLike<any> { |
|
|
|
|
|
(): void; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const typeToIcon = { |
|
|
const typeToIcon = { |
|
|
info: InfoCircleFilled, |
|
|
info: InfoCircleFilled, |
|
|