Skip to content

Commit

Permalink
fix: VisitableElement import
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Jun 22, 2023
1 parent ec71d9c commit 10f5541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 4 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import type { Highlighter, IShikiTheme } from 'shiki';
import type { Transformer } from 'unified';
import type { Root } from 'hast';
import type { VisitableElement } from './src/types';
export type { VisitableElement };

export type VisitableElement = Omit<Element, 'properties'> & {
properties: Properties & { className?: string[] };
};

type Theme = IShikiTheme | string;

Expand Down
6 changes: 0 additions & 6 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import type { Properties, Element } from 'hast';

export interface WordHighlighterOptions {
wordNumbers: Array<number[]>;
wordIdsMap: Map<string, string>;
wordCounter: Map<string, number>;
}

export type VisitableElement = Omit<Element, 'properties'> & {
properties: Properties & { className?: string[] };
};

0 comments on commit 10f5541

Please sign in to comment.