@textlint/ast-node-types
Advanced tools
Comparing version 12.2.2 to 12.3.0
@@ -59,3 +59,3 @@ /** | ||
*/ | ||
export declare type TxtNodeType = keyof typeof ASTNodeTypes | string; | ||
export type TxtNodeType = keyof typeof ASTNodeTypes | string; | ||
/** | ||
@@ -69,3 +69,3 @@ * Type utility for TxtNodeType | ||
*/ | ||
export declare type AnyTxtNode = TxtNode | TxtTextNode | TxtParentNode; | ||
export type AnyTxtNode = TxtNode | TxtTextNode | TxtParentNode; | ||
/** | ||
@@ -103,3 +103,3 @@ * Basic TxtNode | ||
*/ | ||
export declare type TextNodeRange = readonly [startIndex: number, endIndex: number]; | ||
export type TextNodeRange = readonly [startIndex: number, endIndex: number]; | ||
/** | ||
@@ -120,1 +120,2 @@ * Text Node. | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -9,2 +9,3 @@ import { ASTNodeTypes, TxtNode, TxtParentNode, TxtTextNode } from "./index"; | ||
*/ | ||
export declare type TypeofTxtNode<T extends ASTNodeTypes | string> = T extends ASTNodeTypes.Document ? TxtParentNode : T extends ASTNodeTypes.DocumentExit ? TxtParentNode : T extends ASTNodeTypes.Paragraph ? TxtParentNode : T extends ASTNodeTypes.ParagraphExit ? TxtParentNode : T extends ASTNodeTypes.BlockQuote ? TxtParentNode : T extends ASTNodeTypes.BlockQuoteExit ? TxtParentNode : T extends ASTNodeTypes.List ? TxtParentNode : T extends ASTNodeTypes.ListExit ? TxtParentNode : T extends ASTNodeTypes.ListItem ? TxtParentNode : T extends ASTNodeTypes.ListItemExit ? TxtParentNode : T extends ASTNodeTypes.Header ? TxtParentNode : T extends ASTNodeTypes.HeaderExit ? TxtParentNode : T extends ASTNodeTypes.CodeBlock ? TxtParentNode : T extends ASTNodeTypes.CodeBlockExit ? TxtParentNode : T extends ASTNodeTypes.HtmlBlock ? TxtParentNode : T extends ASTNodeTypes.HtmlBlockExit ? TxtParentNode : T extends ASTNodeTypes.Link ? TxtParentNode : T extends ASTNodeTypes.LinkExit ? TxtParentNode : T extends ASTNodeTypes.Delete ? TxtParentNode : T extends ASTNodeTypes.DeleteExit ? TxtParentNode : T extends ASTNodeTypes.Emphasis ? TxtParentNode : T extends ASTNodeTypes.EmphasisExit ? TxtParentNode : T extends ASTNodeTypes.Strong ? TxtParentNode : T extends ASTNodeTypes.StrongExit ? TxtParentNode : T extends ASTNodeTypes.Break ? TxtNode : T extends ASTNodeTypes.BreakExit ? TxtNode : T extends ASTNodeTypes.Image ? TxtNode : T extends ASTNodeTypes.ImageExit ? TxtNode : T extends ASTNodeTypes.HorizontalRule ? TxtNode : T extends ASTNodeTypes.HorizontalRuleExit ? TxtNode : T extends ASTNodeTypes.Comment ? TxtTextNode : T extends ASTNodeTypes.CommentExit ? TxtTextNode : T extends ASTNodeTypes.Str ? TxtTextNode : T extends ASTNodeTypes.StrExit ? TxtTextNode : T extends ASTNodeTypes.Code ? TxtTextNode : T extends ASTNodeTypes.CodeExit ? TxtTextNode : T extends ASTNodeTypes.Html ? TxtTextNode : T extends ASTNodeTypes.HtmlExit ? TxtTextNode : any; | ||
export type TypeofTxtNode<T extends ASTNodeTypes | string> = T extends ASTNodeTypes.Document ? TxtParentNode : T extends ASTNodeTypes.DocumentExit ? TxtParentNode : T extends ASTNodeTypes.Paragraph ? TxtParentNode : T extends ASTNodeTypes.ParagraphExit ? TxtParentNode : T extends ASTNodeTypes.BlockQuote ? TxtParentNode : T extends ASTNodeTypes.BlockQuoteExit ? TxtParentNode : T extends ASTNodeTypes.List ? TxtParentNode : T extends ASTNodeTypes.ListExit ? TxtParentNode : T extends ASTNodeTypes.ListItem ? TxtParentNode : T extends ASTNodeTypes.ListItemExit ? TxtParentNode : T extends ASTNodeTypes.Header ? TxtParentNode : T extends ASTNodeTypes.HeaderExit ? TxtParentNode : T extends ASTNodeTypes.CodeBlock ? TxtParentNode : T extends ASTNodeTypes.CodeBlockExit ? TxtParentNode : T extends ASTNodeTypes.HtmlBlock ? TxtParentNode : T extends ASTNodeTypes.HtmlBlockExit ? TxtParentNode : T extends ASTNodeTypes.Link ? TxtParentNode : T extends ASTNodeTypes.LinkExit ? TxtParentNode : T extends ASTNodeTypes.Delete ? TxtParentNode : T extends ASTNodeTypes.DeleteExit ? TxtParentNode : T extends ASTNodeTypes.Emphasis ? TxtParentNode : T extends ASTNodeTypes.EmphasisExit ? TxtParentNode : T extends ASTNodeTypes.Strong ? TxtParentNode : T extends ASTNodeTypes.StrongExit ? TxtParentNode : T extends ASTNodeTypes.Break ? TxtNode : T extends ASTNodeTypes.BreakExit ? TxtNode : T extends ASTNodeTypes.Image ? TxtNode : T extends ASTNodeTypes.ImageExit ? TxtNode : T extends ASTNodeTypes.HorizontalRule ? TxtNode : T extends ASTNodeTypes.HorizontalRuleExit ? TxtNode : T extends ASTNodeTypes.Comment ? TxtTextNode : T extends ASTNodeTypes.CommentExit ? TxtTextNode : T extends ASTNodeTypes.Str ? TxtTextNode : T extends ASTNodeTypes.StrExit ? TxtTextNode : T extends ASTNodeTypes.Code ? TxtTextNode : T extends ASTNodeTypes.CodeExit ? TxtTextNode : T extends ASTNodeTypes.Html ? TxtTextNode : T extends ASTNodeTypes.HtmlExit ? TxtTextNode : any; | ||
//# sourceMappingURL=TypeofTxtNode.d.ts.map |
@@ -59,3 +59,3 @@ /** | ||
*/ | ||
export declare type TxtNodeType = keyof typeof ASTNodeTypes | string; | ||
export type TxtNodeType = keyof typeof ASTNodeTypes | string; | ||
/** | ||
@@ -69,3 +69,3 @@ * Type utility for TxtNodeType | ||
*/ | ||
export declare type AnyTxtNode = TxtNode | TxtTextNode | TxtParentNode; | ||
export type AnyTxtNode = TxtNode | TxtTextNode | TxtParentNode; | ||
/** | ||
@@ -103,3 +103,3 @@ * Basic TxtNode | ||
*/ | ||
export declare type TextNodeRange = readonly [startIndex: number, endIndex: number]; | ||
export type TextNodeRange = readonly [startIndex: number, endIndex: number]; | ||
/** | ||
@@ -120,1 +120,2 @@ * Text Node. | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -9,2 +9,3 @@ import { ASTNodeTypes, TxtNode, TxtParentNode, TxtTextNode } from "./index"; | ||
*/ | ||
export declare type TypeofTxtNode<T extends ASTNodeTypes | string> = T extends ASTNodeTypes.Document ? TxtParentNode : T extends ASTNodeTypes.DocumentExit ? TxtParentNode : T extends ASTNodeTypes.Paragraph ? TxtParentNode : T extends ASTNodeTypes.ParagraphExit ? TxtParentNode : T extends ASTNodeTypes.BlockQuote ? TxtParentNode : T extends ASTNodeTypes.BlockQuoteExit ? TxtParentNode : T extends ASTNodeTypes.List ? TxtParentNode : T extends ASTNodeTypes.ListExit ? TxtParentNode : T extends ASTNodeTypes.ListItem ? TxtParentNode : T extends ASTNodeTypes.ListItemExit ? TxtParentNode : T extends ASTNodeTypes.Header ? TxtParentNode : T extends ASTNodeTypes.HeaderExit ? TxtParentNode : T extends ASTNodeTypes.CodeBlock ? TxtParentNode : T extends ASTNodeTypes.CodeBlockExit ? TxtParentNode : T extends ASTNodeTypes.HtmlBlock ? TxtParentNode : T extends ASTNodeTypes.HtmlBlockExit ? TxtParentNode : T extends ASTNodeTypes.Link ? TxtParentNode : T extends ASTNodeTypes.LinkExit ? TxtParentNode : T extends ASTNodeTypes.Delete ? TxtParentNode : T extends ASTNodeTypes.DeleteExit ? TxtParentNode : T extends ASTNodeTypes.Emphasis ? TxtParentNode : T extends ASTNodeTypes.EmphasisExit ? TxtParentNode : T extends ASTNodeTypes.Strong ? TxtParentNode : T extends ASTNodeTypes.StrongExit ? TxtParentNode : T extends ASTNodeTypes.Break ? TxtNode : T extends ASTNodeTypes.BreakExit ? TxtNode : T extends ASTNodeTypes.Image ? TxtNode : T extends ASTNodeTypes.ImageExit ? TxtNode : T extends ASTNodeTypes.HorizontalRule ? TxtNode : T extends ASTNodeTypes.HorizontalRuleExit ? TxtNode : T extends ASTNodeTypes.Comment ? TxtTextNode : T extends ASTNodeTypes.CommentExit ? TxtTextNode : T extends ASTNodeTypes.Str ? TxtTextNode : T extends ASTNodeTypes.StrExit ? TxtTextNode : T extends ASTNodeTypes.Code ? TxtTextNode : T extends ASTNodeTypes.CodeExit ? TxtTextNode : T extends ASTNodeTypes.Html ? TxtTextNode : T extends ASTNodeTypes.HtmlExit ? TxtTextNode : any; | ||
export type TypeofTxtNode<T extends ASTNodeTypes | string> = T extends ASTNodeTypes.Document ? TxtParentNode : T extends ASTNodeTypes.DocumentExit ? TxtParentNode : T extends ASTNodeTypes.Paragraph ? TxtParentNode : T extends ASTNodeTypes.ParagraphExit ? TxtParentNode : T extends ASTNodeTypes.BlockQuote ? TxtParentNode : T extends ASTNodeTypes.BlockQuoteExit ? TxtParentNode : T extends ASTNodeTypes.List ? TxtParentNode : T extends ASTNodeTypes.ListExit ? TxtParentNode : T extends ASTNodeTypes.ListItem ? TxtParentNode : T extends ASTNodeTypes.ListItemExit ? TxtParentNode : T extends ASTNodeTypes.Header ? TxtParentNode : T extends ASTNodeTypes.HeaderExit ? TxtParentNode : T extends ASTNodeTypes.CodeBlock ? TxtParentNode : T extends ASTNodeTypes.CodeBlockExit ? TxtParentNode : T extends ASTNodeTypes.HtmlBlock ? TxtParentNode : T extends ASTNodeTypes.HtmlBlockExit ? TxtParentNode : T extends ASTNodeTypes.Link ? TxtParentNode : T extends ASTNodeTypes.LinkExit ? TxtParentNode : T extends ASTNodeTypes.Delete ? TxtParentNode : T extends ASTNodeTypes.DeleteExit ? TxtParentNode : T extends ASTNodeTypes.Emphasis ? TxtParentNode : T extends ASTNodeTypes.EmphasisExit ? TxtParentNode : T extends ASTNodeTypes.Strong ? TxtParentNode : T extends ASTNodeTypes.StrongExit ? TxtParentNode : T extends ASTNodeTypes.Break ? TxtNode : T extends ASTNodeTypes.BreakExit ? TxtNode : T extends ASTNodeTypes.Image ? TxtNode : T extends ASTNodeTypes.ImageExit ? TxtNode : T extends ASTNodeTypes.HorizontalRule ? TxtNode : T extends ASTNodeTypes.HorizontalRuleExit ? TxtNode : T extends ASTNodeTypes.Comment ? TxtTextNode : T extends ASTNodeTypes.CommentExit ? TxtTextNode : T extends ASTNodeTypes.Str ? TxtTextNode : T extends ASTNodeTypes.StrExit ? TxtTextNode : T extends ASTNodeTypes.Code ? TxtTextNode : T extends ASTNodeTypes.CodeExit ? TxtTextNode : T extends ASTNodeTypes.Html ? TxtTextNode : T extends ASTNodeTypes.HtmlExit ? TxtTextNode : any; | ||
//# sourceMappingURL=TypeofTxtNode.d.ts.map |
{ | ||
"name": "@textlint/ast-node-types", | ||
"version": "12.2.2", | ||
"description": "textlint AST node type definition.", | ||
"keywords": [ | ||
"textlint" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/textlint/textlint.git" | ||
}, | ||
"license": "MIT", | ||
"author": "azu", | ||
"main": "./lib/src/index.js", | ||
"module": "./module/src/index.js", | ||
"types": "./lib/src/index.d.ts", | ||
"files": [ | ||
"bin/", | ||
"lib/", | ||
"module/", | ||
"src/", | ||
"!*.tsbuildinfo" | ||
], | ||
"scripts": { | ||
"build": "tsc -b && tsc -b tsconfig.module.json", | ||
"clean": "rimraf lib/ module/", | ||
"prepack": "npm run build", | ||
"test": "mocha \"test/**/*.{js,ts}\"" | ||
}, | ||
"devDependencies": { | ||
"cross-env": "^7.0.3", | ||
"mocha": "^9.2.2", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.9.1", | ||
"ts-node-test-register": "^10.0.0", | ||
"typescript": "~4.4.4" | ||
}, | ||
"gitHead": "db0a3e9acbd21c3a0592a705c6d0eab854d2eede" | ||
"name": "@textlint/ast-node-types", | ||
"version": "12.3.0", | ||
"description": "textlint AST node type definition.", | ||
"keywords": [ | ||
"textlint" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/textlint/textlint.git" | ||
}, | ||
"license": "MIT", | ||
"author": "azu", | ||
"main": "./lib/src/index.js", | ||
"module": "./module/src/index.js", | ||
"types": "./lib/src/index.d.ts", | ||
"files": [ | ||
"bin/", | ||
"lib/", | ||
"module/", | ||
"src/", | ||
"!*.tsbuildinfo" | ||
], | ||
"scripts": { | ||
"build": "tsc -b && tsc -b tsconfig.module.json", | ||
"clean": "rimraf lib/ module/", | ||
"prepack": "npm run build", | ||
"test": "mocha \"test/**/*.{js,ts}\"" | ||
}, | ||
"devDependencies": { | ||
"cross-env": "^7.0.3", | ||
"mocha": "^9.2.2", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.9.1", | ||
"ts-node-test-register": "^10.0.0", | ||
"typescript": "~4.9.4" | ||
}, | ||
"gitHead": "cd49cd21ecce9f8e0469a84a5fc354c55d9617f2" | ||
} |
33645
21