Skip to content

Commit

Permalink
fix(highlight): typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Sep 11, 2024
1 parent a6ef1e5 commit 279cd06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/components/highlight/use-highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ export interface UseHighlightProps extends HighlightWordProps {}
export const useHighlight = (props: UseHighlightProps): HighlightChunk[] => {
return useMemo(() => highlightWord(props), [props])
}

export type { HighlightChunk }
2 changes: 2 additions & 0 deletions packages/solid/src/components/highlight/use-highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export interface UseHighlightProps extends HighlightWordProps {}
export const useHighlight = (props: UseHighlightProps): Accessor<HighlightChunk[]> => {
return createMemo(() => highlightWord(props))
}

export type { HighlightChunk }

0 comments on commit 279cd06

Please sign in to comment.