UNPKG

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