Merge pull request #32460 from sergey-shandar/patch-1

NodeType type
This commit is contained in:
Pranav Senthilnathan
2019-01-30 14:48:52 -08:00
committed by GitHub
+6 -3
View File
@@ -4,15 +4,18 @@
// Leonard Thieu <https://github.com/leonard-thieu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export type NodeType =
'text' |'softbreak' | 'linebreak' | 'emph' | 'strong' | 'html_inline' | 'link' | 'image' | 'code' | 'document' | 'paragraph' |
'block_quote' | 'item' | 'list' | 'heading' | 'code_block' | 'html_block' | 'thematic_break' | 'custom_inline' | 'custom_block';
export class Node {
constructor(nodeType: string, sourcepos?: Position);
constructor(nodeType: NodeType, sourcepos?: Position);
/**
* (read-only): a String, one of text, softbreak, linebreak, emph, strong, html_inline, link, image, code, document, paragraph,
* block_quote, item, list, heading, code_block, html_block, thematic_break.
*/
readonly type: 'text' | 'softbreak' | 'linebreak' | 'emph' | 'strong' | 'html_inline' | 'link' | 'image' | 'code' | 'document' | 'paragraph' |
'block_quote' | 'item' | 'list' | 'heading' | 'code_block' | 'html_block' | 'thematic_break' | 'custom_inline' | 'custom_block';
readonly type: NodeType;
/**
* (read-only): a Node or null.
*/