1 | import { IRuleMetadata, RuleFailure } from 'tslint/lib';
|
2 | import { AbstractRule } from 'tslint/lib/rules';
|
3 | import { SourceFile } from 'typescript';
|
4 | import { AngularClassDecoratorKeys, AngularLifecycleMethodKeys } from './util/utils';
|
5 | interface FailureParameters {
|
6 | readonly className: string;
|
7 | readonly decoratorName: AngularClassDecoratorKeys;
|
8 | readonly methodName: AngularLifecycleMethodKeys;
|
9 | }
|
10 | export declare const getFailureMessage: (failureParameters: FailureParameters) => string;
|
11 | export declare class Rule extends AbstractRule {
|
12 | static readonly metadata: IRuleMetadata;
|
13 | static readonly FAILURE_STRING = "The method \"%s\" is not allowed for class \"%s\" because it is decorated with \"%s\"";
|
14 | apply(sourceFile: SourceFile): RuleFailure[];
|
15 | }
|
16 | export {};
|