Skip to content

Commit 9fa5a6e

Browse files
filipesilvammalerba
authored andcommitted
refactor: default to agnostic ts type to schematics one (#18133)
Fixes TOOL-1261, necessary for TS 3.7 update.
1 parent 5e13b52 commit 9fa5a6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cdk/schematics/utils/version-agnostic-typescript.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
* Note that we always need to adjust this type import based on the location of the Typescript
1313
* dependency that will be shipped with `@schematics/angular`.
1414
*/
15-
import typescript = require('typescript');
15+
import typescript =
16+
require('@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript');
1617
import {SchematicsException} from '@angular-devkit/schematics';
1718

1819
/**

0 commit comments

Comments
 (0)