| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e4a6917 commit f888c88
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ function walk(ctx: Lint.WalkContext<void>): void { | |||
| 27 | 27 | /** Skip certain function/method names whose parameter names are not informative. */ | |
| 28 | 28 | function shouldIgnoreCalledExpression(expression: ts.Expression): boolean { | |
| 29 | 29 | if (expression.kind === ts.SyntaxKind.PropertyAccessExpression) { | |
| 30 | - const methodName = (expression as ts.PropertyAccessExpression).name.text; | ||
| 30 | + const methodName = (expression as ts.PropertyAccessExpression).name.text as string; | ||
| 31 | 31 | if (methodName.indexOf("set") === 0) { | |
| 32 | 32 | return true; | |
| 33 | 33 | } | |
@@ -44,7 +44,7 @@ function walk(ctx: Lint.WalkContext<void>): void { | |||
| 44 | 44 | } | |
| 45 | 45 | } | |
| 46 | 46 | else if (expression.kind === ts.SyntaxKind.Identifier) { | |
| 47 | - const functionName = (expression as ts.Identifier).text; | ||
| 47 | + const functionName = (expression as ts.Identifier).text as string; | ||
| 48 | 48 | if (functionName.indexOf("set") === 0) { | |
| 49 | 49 | return true; | |
| 50 | 50 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments