1 | import { IRuleMetadata, RuleFailure } from 'tslint';
|
2 | import { AbstractRule } from 'tslint/lib/rules';
|
3 | import { SourceFile } from 'typescript';
|
4 | import { AngularLifecycleInterfaceKeys, AngularLifecycleMethodKeys } from './util/utils';
|
5 | interface FailureParameters {
|
6 | readonly interfaceName: AngularLifecycleInterfaceKeys;
|
7 | readonly methodName: AngularLifecycleMethodKeys;
|
8 | }
|
9 | export declare const getFailureMessage: (failureParameters: FailureParameters) => string;
|
10 | export declare class Rule extends AbstractRule {
|
11 | static readonly metadata: IRuleMetadata;
|
12 | static readonly FAILURE_STRING: string;
|
13 | apply(sourceFile: SourceFile): RuleFailure[];
|
14 | }
|
15 | export {};
|