UNPKG

544 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure } from 'tslint';
2import { AbstractRule } from 'tslint/lib/rules';
3import { SourceFile } from 'typescript';
4interface FailureParameters {
5 readonly className: string;
6}
7export declare const getFailureMessage: (failureParameters: FailureParameters) => string;
8export declare class Rule extends AbstractRule {
9 static readonly metadata: IRuleMetadata;
10 static readonly FAILURE_STRING = "The selector of the component \"%s\" is mandatory";
11 apply(sourceFile: SourceFile): RuleFailure[];
12}
13export {};