UNPKG

626 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure } from 'tslint';
2import { AbstractRule } from 'tslint/lib/rules';
3import { SourceFile } from 'typescript';
4interface FailureParameters {
5 readonly className: string;
6 readonly propertyName: string;
7}
8export declare const getFailureMessage: (failureParameters: FailureParameters) => string;
9export declare class Rule extends AbstractRule {
10 static readonly metadata: IRuleMetadata;
11 static readonly FAILURE_STRING = "In the class \"%s\", the output property \"%s\" should not be named or renamed as a native event";
12 apply(sourceFile: SourceFile): RuleFailure[];
13}
14export {};