@textlint/types
Advanced tools
Comparing version 13.0.4 to 13.0.5
@@ -20,4 +20,4 @@ import { TextlintBaseRuleContext } from "./TextlintBaseRuleContext"; | ||
fixer: TextlintRuleContextFixCommandGenerator; | ||
report: (node: TxtNode, ruleError: TextlintRuleReportedObject | TextlintRuleError, _shouldNotUsed?: any) => void; | ||
report: (node: TxtNode, ruleError: TextlintRuleReportedObject | TextlintRuleError, _shouldNotUsed?: never) => void; | ||
} | ||
//# sourceMappingURL=TextlintRuleContext.d.ts.map |
{ | ||
"name": "@textlint/types", | ||
"version": "13.0.4", | ||
"version": "13.0.5", | ||
"description": "Type definition package for textlint", | ||
@@ -47,6 +47,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@textlint/ast-node-types": "^13.0.4" | ||
"@textlint/ast-node-types": "^13.0.5" | ||
}, | ||
"devDependencies": { | ||
"@textlint/markdown-to-ast": "^13.0.4", | ||
"@textlint/markdown-to-ast": "^13.0.5", | ||
"@types/mocha": "^9.1.1", | ||
@@ -66,3 +66,3 @@ "@types/node": "^18.11.18", | ||
}, | ||
"gitHead": "3da4e6875ddacded095e934f1671707c9bcc35fb" | ||
"gitHead": "4251c9e29f84eba59ba6cba343d7552b3b9a4ed9" | ||
} |
@@ -26,3 +26,3 @@ // LICENSE : MIT | ||
fixer: TextlintRuleContextFixCommandGenerator; | ||
report: (node: TxtNode, ruleError: TextlintRuleReportedObject | TextlintRuleError, _shouldNotUsed?: any) => void; | ||
report: (node: TxtNode, ruleError: TextlintRuleReportedObject | TextlintRuleError, _shouldNotUsed?: never) => void; | ||
} |
@@ -7,2 +7,3 @@ /** | ||
import { TextlintRuleContext } from "./TextlintRuleContext"; | ||
/** | ||
@@ -17,2 +18,3 @@ * Rule Reporter Handler object define handler for each TxtNode type. | ||
export type TextlintRuleReportHandler = { [P in ASTNodeTypes]?: (node: TypeofTxtNode<P>) => void | Promise<any> } & { | ||
// TODO: node should be AnyNodeType | ||
[index: string]: (node: any) => void | Promise<any>; | ||
@@ -19,0 +21,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1405
109715