Skip to content

Commit

Permalink
fix(types): 修复 atMessage类型丢失的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
robinv8 committed May 4, 2023
1 parent 5b80b87 commit 4cf5335
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/taro-ui/types/message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { MouseEvent, ComponentClass } from 'react'

import AtComponent from './base'

export interface AtMessageProps extends AtComponent {}
export interface AtMessageProps extends AtComponent { }

export interface AtMessageState {
_isOpened: boolean
Expand Down Expand Up @@ -30,6 +30,12 @@ interface Options {
duration?: number
}

declare function message({ }: Options ): void
declare function message({ }: Options): void

declare module '@tarojs/taro' {
interface TaroStatic {
atMessage: (options: Options) => void
}
}

export { AtMessage, message }

0 comments on commit 4cf5335

Please sign in to comment.