Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriangalliat committed Sep 7, 2024
1 parent 6de6c1b commit 8182650
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import MarkdownIt from 'markdown-it';
import Token as JSToken from 'markdown-it/lib/token.mjs';
import State as JSState from 'markdown-it/lib/rules_core/state_core.mjs';
import { default as MarkdownItToken } from 'markdown-it/lib/token.mjs';
import { default as MarkdownItState} from 'markdown-it/lib/rules_core/state_core.mjs';

declare namespace anchor {
export type Token = JSToken;
export type State = JSState;
export type Token = MarkdownItToken
export type State = MarkdownItState
export type RenderHref = (slug: string, state: State) => string;
export type RenderAttrs = (slug: string, state: State) => Record<string, string | number>;

Expand Down

0 comments on commit 8182650

Please sign in to comment.