Type alias RuleSeed<T, O>

RuleSeed<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 Parameters

Type declaration

  • Optional Readonly defaultOptions?: O
  • Optional Readonly defaultSeverity?: Severity
  • Optional Readonly defaultValue?: T
  • fix?:function
    • 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;
        }
        • 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

      Returns void | Promise<void>

  • verify:function
    • 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;
        }
        • 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

      Returns void | Promise<void>

Generated using TypeDoc