Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed May 19, 2024
1 parent dea6690 commit 1021c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/regex/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type StyleOrRender =
* The priority is descending order.
*/
export const createRegexRenderer = (
matchers: [RegExp, StyleOrRender][]
matchers: [regex: RegExp, style: StyleOrRender][]
): Renderer => {
const allStyles = matchers.map(([, style]) => style);

Expand Down Expand Up @@ -157,7 +157,7 @@ const CSSHighlighter = memo(
* @experimental
*/
export const createCSSCustomHighlightRenderer = (
matchers: [RegExp, string][]
matchers: [regex: RegExp, style: string][]
): Renderer => {
const styleStr = matchers.reduce((acc, [, style], i) => {
return acc + `::highlight(${createCSSHighlightID(i)}){${style}}`;
Expand Down

0 comments on commit 1021c68

Please sign in to comment.