UNPKG

438 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure, Rules } from 'tslint/lib';
2import { SourceFile } from 'typescript';
3export declare const getErrorMessage: (element: string) => string;
4export declare class Rule extends Rules.AbstractRule {
5 static readonly metadata: IRuleMetadata;
6 static readonly FAILURE_STRING = "<%s/> element should have content";
7 static readonly ELEMENTS: string[];
8 apply(sourceFile: SourceFile): RuleFailure[];
9}