UNPKG

467 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure, Rules } from 'tslint/lib';
2import { SourceFile } from 'typescript/lib/typescript';
3export declare class Rule extends Rules.AbstractRule {
4 static readonly metadata: IRuleMetadata;
5 static readonly FAILURE_STRING = "%s element must have a text alternative.";
6 static readonly DEFAULT_ELEMENTS: string[];
7 apply(sourceFile: SourceFile): RuleFailure[];
8}
9export declare const getFailureMessage: (name: string) => string;