File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines 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
}
You can’t perform that action at this time.
0 commit comments