- Preparing search index...
- The search index is not available
Markuplit API
Type alias RuleSeed<T, O>
Rule
Seed
<T, O>: { defaultOptions
?: O; defaultSeverity
?: Severity; defaultValue
?: T; fix
?(context
: { document
: Document<T, O>; report
: { (report
: Report<T, O>): undefined; (report
: CheckerReport<T, O>): boolean; }; reports
: ({ message
: string; } | { message
: string; } | { message
: string; })[]; t
: Translator; translate
: Translator; }): void | Promise<void>; verify
(context
: { document
: Document<T, O>; report
: { (report
: Report<T, O>): undefined; (report
: CheckerReport<T, O>): boolean; }; reports
: ({ message
: string; } | { message
: string; } | { message
: string; })[]; t
: Translator; translate
: Translator; }): void | Promise<void>; }
Type declaration
-
Optional
Readonly
defaultOptions?: O
-
Optional
Readonly
defaultSeverity?: Severity
-
Optional
Readonly
defaultValue?: T
-
fix?:function
- fix(context: {
document: Document<T, O>;
report: {
(report: Report<T, O>): undefined;
(report: CheckerReport<T, O>): boolean;
};
reports: ({
message: string;
} | {
message: string;
} | {
message: string;
})[];
t: Translator;
translate: Translator;
}): void | Promise<void>
-
Parameters
-
context: {
document: Document<T, O>;
report: {
(report: Report<T, O>): undefined;
(report: CheckerReport<T, O>): boolean;
};
reports: ({
message: string;
} | {
message: string;
} | {
message: string;
})[];
t: Translator;
translate: Translator;
}
-
-
report: {
(report: Report<T, O>): undefined;
(report: CheckerReport<T, O>): boolean;
}
-
- (report: Report<T, O>): undefined
-
Returns undefined
- (report: CheckerReport<T, O>): boolean
-
Returns boolean
-
reports: ({
message: string;
} | {
message: string;
} | {
message: string;
})[]
-
-
Returns void | Promise<void>
-
verify:function
- verify(context: {
document: Document<T, O>;
report: {
(report: Report<T, O>): undefined;
(report: CheckerReport<T, O>): boolean;
};
reports: ({
message: string;
} | {
message: string;
} | {
message: string;
})[];
t: Translator;
translate: Translator;
}): void | Promise<void>
-
Parameters
-
context: {
document: Document<T, O>;
report: {
(report: Report<T, O>): undefined;
(report: CheckerReport<T, O>): boolean;
};
reports: ({
message: string;
} | {
message: string;
} | {
message: string;
})[];
t: Translator;
translate: Translator;
}
-
-
report: {
(report: Report<T, O>): undefined;
(report: CheckerReport<T, O>): boolean;
}
-
- (report: Report<T, O>): undefined
-
Returns undefined
- (report: CheckerReport<T, O>): boolean
-
Returns boolean
-
reports: ({
message: string;
} | {
message: string;
} | {
message: string;
})[]
-
-
Returns void | Promise<void>