noSwitchCaseFallThroughRule.d.ts 532B

12345678910111213
  1. import * as ts from "typescript";
  2. import * as Lint from "../index";
  3. export declare class Rule extends Lint.Rules.AbstractRule {
  4. static metadata: Lint.IRuleMetadata;
  5. static FAILURE_STRING(keyword: ts.SyntaxKind): string;
  6. apply(sourceFile: ts.SourceFile): Lint.RuleFailure[];
  7. }
  8. export declare class NoSwitchCaseFallThroughWalker extends Lint.AbstractWalker<void> {
  9. walk(sourceFile: ts.SourceFile): void | undefined;
  10. private visitSwitchStatement({caseBlock: {clauses}});
  11. private isFallThroughAllowed(clause);
  12. }