@textlint/textlint-plugin-text
Advanced tools
Comparing version 13.4.0 to 13.4.1
import type { TextlintPluginProcessor, TextlintPluginOptions } from "@textlint/types"; | ||
import { TxtNode } from "@textlint/ast-node-types"; | ||
export declare class TextProcessor implements TextlintPluginProcessor { | ||
@@ -9,6 +8,3 @@ config: TextlintPluginOptions; | ||
processor(_ext: string): { | ||
preProcess(text: string, _filePath?: string): TxtNode | { | ||
text: string; | ||
ast: TxtNode; | ||
}; | ||
preProcess(text: string, _filePath?: string): import("@textlint/ast-node-types").TxtDocumentNode; | ||
postProcess(messages: Array<any>, filePath?: string): { | ||
@@ -15,0 +11,0 @@ messages: Array<any>; |
import type { TextlintPluginProcessor, TextlintPluginOptions } from "@textlint/types"; | ||
import { TxtNode } from "@textlint/ast-node-types"; | ||
export declare class TextProcessor implements TextlintPluginProcessor { | ||
@@ -9,6 +8,3 @@ config: TextlintPluginOptions; | ||
processor(_ext: string): { | ||
preProcess(text: string, _filePath?: string): TxtNode | { | ||
text: string; | ||
ast: TxtNode; | ||
}; | ||
preProcess(text: string, _filePath?: string): import("@textlint/ast-node-types").TxtDocumentNode; | ||
postProcess(messages: Array<any>, filePath?: string): { | ||
@@ -15,0 +11,0 @@ messages: Array<any>; |
{ | ||
"name": "@textlint/textlint-plugin-text", | ||
"version": "13.4.0", | ||
"version": "13.4.1", | ||
"description": "plain text plugin for textlint", | ||
@@ -36,6 +36,6 @@ "homepage": "https://github.com/textlint/textlint/tree/master/packages/@textlint/textlint-plugin-text/", | ||
"dependencies": { | ||
"@textlint/text-to-ast": "^13.4.0" | ||
"@textlint/text-to-ast": "^13.4.1" | ||
}, | ||
"devDependencies": { | ||
"@textlint/kernel": "^13.4.0", | ||
"@textlint/kernel": "^13.4.1", | ||
"@types/mocha": "9.1.1", | ||
@@ -51,3 +51,3 @@ "mocha": "^10.2.0", | ||
}, | ||
"gitHead": "6aad8fe8f9c76388d11a27be1d6fbf112b8e2396" | ||
"gitHead": "12529a831ab27256c0a322b439420f741ad22029" | ||
} |
@@ -6,3 +6,2 @@ /* eslint-disable no-unused-vars */ | ||
import type { TextlintPluginProcessor, TextlintPluginOptions } from "@textlint/types"; | ||
import { TxtNode } from "@textlint/ast-node-types"; | ||
@@ -24,3 +23,3 @@ export class TextProcessor implements TextlintPluginProcessor { | ||
return { | ||
preProcess(text: string, _filePath?: string): TxtNode | { text: string; ast: TxtNode } { | ||
preProcess(text: string, _filePath?: string) { | ||
return parse(text); | ||
@@ -27,0 +26,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
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
105777
144