UNPKG

592 BTypeScriptView Raw
1import * as Lint from 'tslint';
2import * as ts from 'typescript';
3import { NgWalker } from './angular';
4import { F2 } from './util/function';
5export declare class Rule extends Lint.Rules.AbstractRule {
6 static readonly metadata: Lint.IRuleMetadata;
7 static readonly FAILURE_STRING = "The name of the class %s should end with the suffix %s (https://angular.io/styleguide#style-02-03)";
8 static walkerBuilder: F2<ts.SourceFile, Lint.IOptions, NgWalker>;
9 static validate(className: string, suffixList: string[]): boolean;
10 apply(sourceFile: ts.SourceFile): Lint.RuleFailure[];
11}