Skip to content

Commit

Permalink
fix: 修复类型声明异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
robinv8 committed Apr 29, 2023
1 parent 7d2610a commit da406aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/taro-ui/types/base.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { CSSProperties } from 'react'
import { CSSProperties, ReactNode } from 'react'

export interface AtComponent {
className?: string

customStyle?: string | CSSProperties

children?: ReactNode
}

export interface AtIconBaseProps2 extends AtComponent {
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-ui/types/calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BaseEvent } from '@tarojs/components/types/common'

// #region Calendar
declare namespace Calendar {
export type DateArg = string | number | Date
export type DateArg = string | number

export type classNameType =
| string
Expand Down Expand Up @@ -181,7 +181,7 @@ export interface AtCalendarControllerProps {
onSelectDate: (e: BaseEvent) => void
}

export interface AtCalendarControllerState {}
export interface AtCalendarControllerState { }
// #endregion

// #region AtCalendarBody
Expand Down

0 comments on commit da406aa

Please sign in to comment.