UNPKG

779 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure } from 'tslint/lib';
2import { AbstractRule } from 'tslint/lib/rules';
3import { SourceFile } from 'typescript/lib/typescript';
4export declare type PropertyType = 'animations' | 'styles' | 'template';
5export declare type PropertyPair = {
6 [key in PropertyType]?: number;
7};
8export declare const getAnimationsFailure: (value: number, limit?: number) => string;
9export declare const getStylesFailure: (value: number, limit?: number) => string;
10export declare const getTemplateFailure: (value: number, limit?: number) => string;
11export declare class Rule extends AbstractRule {
12 static readonly metadata: IRuleMetadata;
13 static readonly FAILURE_STRING: string;
14 apply(sourceFile: SourceFile): RuleFailure[];
15 isEnabled(): boolean;
16}