Skip to content

Commit

Permalink
fix(): force assert types to support older version of ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Sep 5, 2022
1 parent 2d1c649 commit 1aac05e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions lib/compiler/hooks/tsconfig-paths.hook.ts
Expand Up @@ -46,7 +46,7 @@ export function tsconfigPathsBeforeHookFactory(

if (tsBinary.isImportDeclaration(node)) {
return isInUpdatedAstContext
? tsBinary.factory.updateImportDeclaration(
? (tsBinary.factory as any).updateImportDeclaration(
node,
node.modifiers,
node.importClause,
Expand All @@ -63,7 +63,7 @@ export function tsconfigPathsBeforeHookFactory(
);
} else {
return isInUpdatedAstContext
? tsBinary.factory.updateExportDeclaration(
? (tsBinary.factory as any).updateExportDeclaration(
node,
node.modifiers,
node.isTypeOnly,
Expand Down
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1aac05e

Please sign in to comment.