textlint
Version:
The pluggable linting tool for natural language.
145 lines • 4.92 kB
TypeScript
import { z } from "zod/v4";
/**
* Zod schema for TextlintMessage that matches the TextlintMessage interface
* from @textlint/types
*/
export declare const TextlintMessageSchema: z.ZodObject<{
ruleId: z.ZodOptional<z.ZodString>;
message: z.ZodString;
line: z.ZodNumber;
column: z.ZodNumber;
severity: z.ZodNumber;
fix: z.ZodOptional<z.ZodObject<{
range: z.ZodArray<z.ZodNumber>;
text: z.ZodString;
}, z.core.$strip>>;
type: z.ZodOptional<z.ZodString>;
data: z.ZodOptional<z.ZodUnknown>;
index: z.ZodOptional<z.ZodNumber>;
range: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
loc: z.ZodOptional<z.ZodObject<{
start: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
end: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>;
/**
* Zod schema for TextlintResult
*/
export declare const TextlintResultSchema: z.ZodObject<{
filePath: z.ZodString;
messages: z.ZodArray<z.ZodObject<{
ruleId: z.ZodOptional<z.ZodString>;
message: z.ZodString;
line: z.ZodNumber;
column: z.ZodNumber;
severity: z.ZodNumber;
fix: z.ZodOptional<z.ZodObject<{
range: z.ZodArray<z.ZodNumber>;
text: z.ZodString;
}, z.core.$strip>>;
type: z.ZodOptional<z.ZodString>;
data: z.ZodOptional<z.ZodUnknown>;
index: z.ZodOptional<z.ZodNumber>;
range: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
loc: z.ZodOptional<z.ZodObject<{
start: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
end: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>>;
output: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/**
* Zod schema for TextlintFixResult
*/
export declare const TextlintFixResultSchema: z.ZodObject<{
filePath: z.ZodString;
output: z.ZodString;
messages: z.ZodArray<z.ZodObject<{
ruleId: z.ZodOptional<z.ZodString>;
message: z.ZodString;
line: z.ZodNumber;
column: z.ZodNumber;
severity: z.ZodNumber;
fix: z.ZodOptional<z.ZodObject<{
range: z.ZodArray<z.ZodNumber>;
text: z.ZodString;
}, z.core.$strip>>;
type: z.ZodOptional<z.ZodString>;
data: z.ZodOptional<z.ZodUnknown>;
index: z.ZodOptional<z.ZodNumber>;
range: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
loc: z.ZodOptional<z.ZodObject<{
start: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
end: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>>;
applyingMessages: z.ZodArray<z.ZodObject<{
ruleId: z.ZodOptional<z.ZodString>;
message: z.ZodString;
line: z.ZodNumber;
column: z.ZodNumber;
severity: z.ZodNumber;
fix: z.ZodOptional<z.ZodObject<{
range: z.ZodArray<z.ZodNumber>;
text: z.ZodString;
}, z.core.$strip>>;
type: z.ZodOptional<z.ZodString>;
data: z.ZodOptional<z.ZodUnknown>;
index: z.ZodOptional<z.ZodNumber>;
range: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
loc: z.ZodOptional<z.ZodObject<{
start: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
end: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>>;
remainingMessages: z.ZodArray<z.ZodObject<{
ruleId: z.ZodOptional<z.ZodString>;
message: z.ZodString;
line: z.ZodNumber;
column: z.ZodNumber;
severity: z.ZodNumber;
fix: z.ZodOptional<z.ZodObject<{
range: z.ZodArray<z.ZodNumber>;
text: z.ZodString;
}, z.core.$strip>>;
type: z.ZodOptional<z.ZodString>;
data: z.ZodOptional<z.ZodUnknown>;
index: z.ZodOptional<z.ZodNumber>;
range: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
loc: z.ZodOptional<z.ZodObject<{
start: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
end: z.ZodObject<{
line: z.ZodNumber;
column: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>>;
}, z.core.$strip>>;
}, z.core.$strip>;
//# sourceMappingURL=schemas.d.ts.map