Skip to content

Commit

Permalink
fix(next/antd): fix array base type (#2994)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwyx778 authored Mar 30, 2022
1 parent 1b7ac58 commit b202c0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/antd/src/array-base/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export type ArrayBaseMixins = {
SortHandle?: React.FC<AntdIconProps & { index?: number }>
Index?: React.FC
useArray?: () => IArrayBaseContext
useIndex?: () => number
useRecord?: () => any
useIndex?: (index?: number) => number
useRecord?: (record?: number) => any
}

export interface IArrayBaseProps {
Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/array-base/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export type ArrayBaseMixins = {
SortHandle?: React.FC<IconProps & { index?: number }>
Index?: React.FC
useArray?: () => IArrayBaseContext
useIndex?: () => number
useRecord?: () => any
useIndex?: (index?: number) => number
useRecord?: (record?: number) => any
}

export interface IArrayBaseProps {
Expand Down

0 comments on commit b202c0d

Please sign in to comment.