Skip to content

Commit

Permalink
fix(types): 修复类型声明不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
robinv8 committed Apr 29, 2023
1 parent cbbdf77 commit 7d2610a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/taro-ui/src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SelectorQuery } from '@tarojs/taro/types/index'

const ENV = Taro.getEnv()

function delay(delayTime = 25): Promise<null> {
function delay(delayTime = 25): Promise<void> {
return new Promise(resolve => {
setTimeout(() => {
resolve()
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-ui/types/swipe-action.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface SwipeActionOption {
/**
* 选项样式类名
*/
className?: object | string | string[]
className?: string
}

export interface AtSwipeActionProps extends AtComponent {
Expand Down

0 comments on commit 7d2610a

Please sign in to comment.