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.