diff options
Diffstat (limited to 'node_modules/tslint/lib/rules/noSwitchCaseFallThroughRule.d.ts')
-rw-r--r-- | node_modules/tslint/lib/rules/noSwitchCaseFallThroughRule.d.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/tslint/lib/rules/noSwitchCaseFallThroughRule.d.ts b/node_modules/tslint/lib/rules/noSwitchCaseFallThroughRule.d.ts new file mode 100644 index 000000000..1fe06743f --- /dev/null +++ b/node_modules/tslint/lib/rules/noSwitchCaseFallThroughRule.d.ts @@ -0,0 +1,12 @@ +import * as ts from "typescript"; +import * as Lint from "../index"; +export declare class Rule extends Lint.Rules.AbstractRule { + static metadata: Lint.IRuleMetadata; + static FAILURE_STRING(keyword: ts.SyntaxKind): string; + apply(sourceFile: ts.SourceFile): Lint.RuleFailure[]; +} +export declare class NoSwitchCaseFallThroughWalker extends Lint.AbstractWalker<void> { + walk(sourceFile: ts.SourceFile): void; + private visitSwitchStatement({caseBlock: {clauses}}); + private isFallThroughAllowed(clause); +} |