UNPKG

460 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure } from 'tslint/lib';
2import { AbstractRule } from 'tslint/lib/rules';
3import { SourceFile } from 'typescript/lib/typescript';
4export declare class Rule extends AbstractRule {
5 static readonly metadata: IRuleMetadata;
6 static readonly FAILURE_STRING = "A label component must be associated with a form element";
7 apply(sourceFile: SourceFile): RuleFailure[];
8 isEnabled(): boolean;
9 private areOptionsValid;
10}