File tree 1 file changed +2
-3
lines changed
src/material/schematics/ng-update/migrations/hammer-gestures-v9
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -358,8 +358,7 @@ export class ImportManager {
358
358
// update the named bindings to not re-print the whole import (which could
359
359
// cause unnecessary formatting changes)
360
360
if ( hasFlag ( importData , ImportState . ADDED ) ) {
361
- // TODO(crisbeto): needs to be cast to any until g3 is updated to TS 4.5.
362
- const updatedImport = ( ts . updateImportDeclaration as any ) (
361
+ const updatedImport = ts . updateImportDeclaration (
363
362
importData . node ,
364
363
undefined ,
365
364
undefined ,
@@ -536,6 +535,6 @@ function createImportSpecifier(
536
535
name : ts . Identifier ,
537
536
) : ts . ImportSpecifier {
538
537
return PARSED_TS_VERSION > 4.4
539
- ? ( ts . createImportSpecifier as any ) ( false , propertyName , name )
538
+ ? ts . createImportSpecifier ( false , propertyName , name )
540
539
: ( ts . createImportSpecifier as any ) ( propertyName , name ) ;
541
540
}
You can’t perform that action at this time.
0 commit comments