UNPKG

619 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure } from 'tslint';
2import { AbstractRule } from 'tslint/lib/rules';
3import { SourceFile } from 'typescript';
4import { AngularClassDecoratorKeys } from './util/utils';
5interface FailureParameters {
6 readonly classDecoratorName: AngularClassDecoratorKeys;
7}
8export declare const getFailureMessage: (failureParameters: FailureParameters) => string;
9export declare class Rule extends AbstractRule {
10 static readonly metadata: IRuleMetadata;
11 static readonly FAILURE_STRING = "Decorator out of context for \"@%s()\"";
12 apply(sourceFile: SourceFile): RuleFailure[];
13}
14export {};