UNPKG

634 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure } from 'tslint';
2import { AbstractRule } from 'tslint/lib/rules';
3import { SourceFile } from 'typescript';
4interface FailureParameters {
5 readonly message: typeof Rule.FAILURE_STRING_INTERFACE_HOOK | typeof Rule.FAILURE_STRING_METHOD_HOOK;
6}
7export declare const getFailureMessage: (failureParameters: FailureParameters) => string;
8export declare class Rule extends AbstractRule {
9 static metadata: IRuleMetadata;
10 static readonly FAILURE_STRING_INTERFACE_HOOK: string;
11 static readonly FAILURE_STRING_METHOD_HOOK: string;
12 apply(sourceFile: SourceFile): RuleFailure[];
13}
14export {};