-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
6 changed files
with
43 additions
and
22 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,29 @@ | ||
export type {BackLabelTemplate, Options} from './lib/html.js' | ||
|
||
export {gfmFootnote} from './lib/syntax.js' | ||
export {gfmFootnoteHtml, defaultBackLabel} from './lib/html.js' | ||
|
||
declare module 'micromark-util-types' { | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions | ||
interface TokenTypeMap { | ||
gfmFootnoteCall: 'gfmFootnoteCall' | ||
gfmFootnoteCallLabelMarker: 'gfmFootnoteCallLabelMarker' | ||
gfmFootnoteCallMarker: 'gfmFootnoteCallMarker' | ||
gfmFootnoteCallString: 'gfmFootnoteCallString' | ||
gfmFootnoteDefinition: 'gfmFootnoteDefinition' | ||
gfmFootnoteDefinitionIndent: 'gfmFootnoteDefinitionIndent' | ||
gfmFootnoteDefinitionLabel: 'gfmFootnoteDefinitionLabel' | ||
gfmFootnoteDefinitionLabelMarker: 'gfmFootnoteDefinitionLabelMarker' | ||
gfmFootnoteDefinitionLabelString: 'gfmFootnoteDefinitionLabelString' | ||
gfmFootnoteDefinitionMarker: 'gfmFootnoteDefinitionMarker' | ||
gfmFootnoteDefinitionWhitespace: 'gfmFootnoteDefinitionWhitespace' | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions | ||
interface CompileData { | ||
gfmFootnoteDefinitions?: Record<string, string> | ||
gfmFootnoteDefinitionStack?: string[] | ||
gfmFootnoteCallCounts?: Record<string, number> | ||
gfmFootnoteCallOrder?: string[] | ||
} | ||
} |
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').BackLabelTemplate} BackLabelTemplate | ||
* @typedef {import('./lib/html.js').Options} HtmlOptions | ||
*/ | ||
|
||
// Note: types are exported from `dev/index.d.ts`. | ||
export {gfmFootnote} from './lib/syntax.js' | ||
export {gfmFootnoteHtml, defaultBackLabel} 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
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