Skip to content

Commit

Permalink
Import type from highlight-words-core directly
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Sep 28, 2023
1 parent ffdb76c commit cbab06d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/src/text/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { TruncateProps } from '../truncate/types';
* External dependencies
*/
import type { CSSProperties } from 'react';
import type { FindAllArgs } from 'highlight-words-core';

export type TextSize =
| 'body'
Expand Down Expand Up @@ -59,7 +60,7 @@ export interface Props extends TruncateProps {
/**
* Array of search words. String search terms are automatically cast to RegExps unless `highlightEscape` is true.
*/
highlightSanitize?: import('highlight-words-core').FindAllArgs[ 'sanitize' ];
highlightSanitize?: FindAllArgs[ 'sanitize' ];
/**
* Sets `Text` to have `display: block`.
*/
Expand Down

0 comments on commit cbab06d

Please sign in to comment.