We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b80b87 commit 4cf5335Copy full SHA for 4cf5335
packages/taro-ui/types/message.d.ts
@@ -2,7 +2,7 @@ import { MouseEvent, ComponentClass } from 'react'
2
3
import AtComponent from './base'
4
5
-export interface AtMessageProps extends AtComponent {}
+export interface AtMessageProps extends AtComponent { }
6
7
export interface AtMessageState {
8
_isOpened: boolean
@@ -30,6 +30,12 @@ interface Options {
30
duration?: number
31
}
32
33
-declare function message({ }: Options ): void
+declare function message({ }: Options): void
34
+
35
+declare module '@tarojs/taro' {
36
+ interface TaroStatic {
37
+ atMessage: (options: Options) => void
38
+ }
39
+}
40
41
export { AtMessage, message }
0 commit comments