Skip to content

Commit

Permalink
fix(IndexList): 修复类型定义
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilotager committed May 10, 2024
1 parent 3423dd1 commit 14db5ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/core/src/index-list/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ForwardRefExoticComponent } from "react"
import { default as IndexBarElement, IndexListProps } from "./index-list"
import IndexListAnchor from "./index-list-anchor"

export type { IndexListThemeVars } from './index-list.shared'
export type { IndexListThemeVars } from "./index-list.shared"

interface IndexListInterface {
(props: IndexListProps): JSX.Element
interface IndexListInterface extends ForwardRefExoticComponent<IndexListProps> {
(props: IndexListProps): React.ReactElement

Anchor: typeof IndexListAnchor
}
Expand Down

0 comments on commit 14db5ce

Please sign in to comment.