-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update types for changes in
micromark-util-types
- Loading branch information
Showing
5 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ node_modules/ | |
/lib/ | ||
/index.js | ||
yarn.lock | ||
!dev/index.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export {mathHtml, type Options as HtmlOptions} from './lib/html.js' | ||
export {math, type Options} from './lib/syntax.js' | ||
|
||
declare module 'micromark-util-types' { | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions | ||
interface TokenTypeMap { | ||
mathFlow: 'mathFlow' | ||
mathFlowFence: 'mathFlowFence' | ||
mathFlowFenceMeta: 'mathFlowFenceMeta' | ||
mathFlowFenceSequence: 'mathFlowFenceSequence' | ||
mathFlowValue: 'mathFlowValue' | ||
mathText: 'mathText' | ||
mathTextData: 'mathTextData' | ||
mathTextPadding: 'mathTextPadding' | ||
mathTextSequence: 'mathTextSequence' | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions | ||
interface CompileData { | ||
mathFlowOpen?: boolean | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/** | ||
* @typedef {import('./lib/html.js').Options} HtmlOptions | ||
* @typedef {import('./lib/syntax.js').Options} Options | ||
*/ | ||
|
||
// Note: types exported from `index.d.ts`. | ||
export {math} from './lib/syntax.js' | ||
export {mathHtml} from './lib/html.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters