mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update type declaration for MarkdownItToken with custom line/lineNumber properties.
This commit is contained in:
parent
0a9ac73524
commit
e717608cac
2 changed files with 10 additions and 0 deletions
8
lib/markdownlint.d.ts
vendored
8
lib/markdownlint.d.ts
vendored
|
@ -174,6 +174,14 @@ type MarkdownItToken = {
|
|||
* Token type.
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* Line number (1-based).
|
||||
*/
|
||||
lineNumber: number;
|
||||
/**
|
||||
* Line content.
|
||||
*/
|
||||
line: string;
|
||||
};
|
||||
/**
|
||||
* Error-reporting callback.
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue