UNPKG

593 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure } from 'tslint/lib';
2import { AbstractRule } from 'tslint/lib/rules';
3import { SourceFile } from 'typescript';
4export declare class Rule extends AbstractRule {
5 static readonly metadata: IRuleMetadata;
6 static readonly FAILURE_STRING_NEGATED_PIPE = "Async pipes should not be negated. Use (observable | async) === (false | null | undefined) to check its value instead";
7 static readonly FAILURE_STRING_UNSTRICT_EQUALITY = "Async pipes must use strict equality `===` when comparing with `false`";
8 apply(sourceFile: SourceFile): RuleFailure[];
9}