Skip to content

Commit

Permalink
fix: unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed May 22, 2024
1 parent 8540507 commit befa1d4
Showing 1 changed file with 31 additions and 32 deletions.
63 changes: 31 additions & 32 deletions src/internal/parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as M from '..';
import * as P from './core';
import { mergeText } from './util';
import { MfmInline, MfmNode, MfmSimpleNode, NodeType } from '..';
import { SeqParseResult } from './core';

// NOTE:
Expand Down Expand Up @@ -66,37 +65,37 @@ function nest<T>(parser: P.Parser<T>, fallback?: P.Parser<string>): P.Parser<T |
}

interface TypeTable {
fullParser: (MfmNode | string)[],
simpleParser: (MfmSimpleNode | string)[],
full: MfmNode | string,
simple: MfmSimpleNode | string,
inline: MfmInline | string,
quote: NodeType<'quote'>,
codeBlock: NodeType<'blockCode'>,
mathBlock: NodeType<'mathBlock'>,
centerTag: NodeType<'center'>,
big: NodeType<'fn'> | string,
boldAsta: NodeType<'bold'> | string,
boldTag: NodeType<'bold'> | string,
boldUnder: NodeType<'bold'>,
smallTag: NodeType<'small'> | string,
italicTag: NodeType<'italic'> | string,
italicAsta: NodeType<'italic'>,
italicUnder: NodeType<'italic'>,
strikeTag: NodeType<'strike'> | string,
strikeWave: NodeType<'strike'> | string,
unicodeEmoji: NodeType<'unicodeEmoji'>,
plainTag: NodeType<'plain'>,
fn: NodeType<'fn'> | string,
inlineCode: NodeType<'inlineCode'>,
mathInline: NodeType<'mathInline'>,
mention: NodeType<'mention'> | string,
hashtag: NodeType<'hashtag'> | string,
emojiCode: NodeType<'emojiCode'>,
link: NodeType<'link'>,
url: NodeType<'url'> | string,
urlAlt: NodeType<'url'>,
search: NodeType<'search'>,
fullParser: (M.MfmNode | string)[],
simpleParser: (M.MfmSimpleNode | string)[],
full: M.MfmNode | string,
simple: M.MfmSimpleNode | string,
inline: M.MfmInline | string,
quote: M.NodeType<'quote'>,
codeBlock: M.NodeType<'blockCode'>,
mathBlock: M.NodeType<'mathBlock'>,
centerTag: M.NodeType<'center'>,
big: M.NodeType<'fn'> | string,
boldAsta: M.NodeType<'bold'> | string,
boldTag: M.NodeType<'bold'> | string,
boldUnder: M.NodeType<'bold'>,
smallTag: M.NodeType<'small'> | string,
italicTag: M.NodeType<'italic'> | string,
italicAsta: M.NodeType<'italic'>,
italicUnder: M.NodeType<'italic'>,
strikeTag: M.NodeType<'strike'> | string,
strikeWave: M.NodeType<'strike'> | string,
unicodeEmoji: M.NodeType<'unicodeEmoji'>,
plainTag: M.NodeType<'plain'>,
fn: M.NodeType<'fn'> | string,
inlineCode: M.NodeType<'inlineCode'>,
mathInline: M.NodeType<'mathInline'>,
mention: M.NodeType<'mention'> | string,
hashtag: M.NodeType<'hashtag'>,
emojiCode: M.NodeType<'emojiCode'>,
link: M.NodeType<'link'>,
url: M.NodeType<'url'> | string,
urlAlt: M.NodeType<'url'>,
search: M.NodeType<'search'>,
text: string,
}

Expand Down

0 comments on commit befa1d4

Please sign in to comment.