strictBooleanExpressionsRule.d.ts 730B

1234567891011121314151617181920212223
  1. import * as ts from "typescript";
  2. import * as Lint from "../index";
  3. export declare class Rule extends Lint.Rules.TypedRule {
  4. static metadata: Lint.IRuleMetadata;
  5. applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): Lint.RuleFailure[];
  6. }
  7. export declare type Location = ts.PrefixUnaryExpression | ts.IfStatement | ts.WhileStatement | ts.DoStatement | ts.ForStatement | ts.ConditionalExpression | ts.BinaryExpression;
  8. export declare const enum TypeFailure {
  9. AlwaysTruthy = 0,
  10. AlwaysFalsy = 1,
  11. String = 2,
  12. Number = 3,
  13. Null = 4,
  14. Undefined = 5,
  15. Enum = 6,
  16. Mixes = 7,
  17. }
  18. declare module "typescript" {
  19. interface IntrinsicType extends ts.Type {
  20. intrinsicName: string;
  21. }
  22. }