templateNoNegatedAsyncRule.d.ts 593 B

123456789
  1. import { IRuleMetadata, RuleFailure } from 'tslint/lib';
  2. import { AbstractRule } from 'tslint/lib/rules';
  3. import { SourceFile } from 'typescript';
  4. export 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. }