Update type declaration for MarkdownItToken with custom line/lineNumber properties.

This commit is contained in:
David Anson 2019-11-11 21:09:37 -08:00
parent 0a9ac73524
commit e717608cac
2 changed files with 10 additions and 0 deletions

View file

@ -174,6 +174,14 @@ type MarkdownItToken = {
* Token type.
*/
type: string;
/**
* Line number (1-based).
*/
lineNumber: number;
/**
* Line content.
*/
line: string;
};
/**
* Error-reporting callback.

View file

@ -783,6 +783,8 @@ module.exports = markdownlint;
* @property {number} nesting Level change.
* @property {string} tag HTML tag name.
* @property {string} type Token type.
* @property {number} lineNumber Line number (1-based).
* @property {string} line Line content.
*/
/**