Skip to content

Commit

Permalink
Merge branch 'main' into browser
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Nov 21, 2023
2 parents a129c4d + ea083cb commit 469f600
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/nowiki/base.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Parser from '../../index';
import {Token} from '../index';
import type {AstText} from '../../lib/text';

Expand All @@ -19,4 +20,12 @@ export abstract class NowikiBaseToken extends Token {
declare childNodes: [AstText];
abstract override get firstChild(): AstText;
abstract override get lastChild(): AstText;

/**
* @param wikitext default: `''`
* @browser
*/
constructor(wikitext = '', config = Parser.getConfig(), accum: Token[] = []) {
super(wikitext, config, accum);
}
}
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"index.ts"
],
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"target": "esnext",
"module": "CommonJS",
"declaration": true,
Expand Down

0 comments on commit 469f600

Please sign in to comment.