Skip to content

Commit

Permalink
refactor(compiler-cli): remove unecessary type assertion
Browse files Browse the repository at this point in the history
microsoft/TypeScript#43966 was fixed in 4.3.1
  • Loading branch information
JeanMeche committed Apr 23, 2023
1 parent 27093a7 commit 80d6475
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/compiler-cli/src/ngtsc/scope/src/dependency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,9 @@ export class MetadataDtsModuleScopeResolver implements DtsModuleScopeResolver {
return dirOrPipe;
}

// TypeScript incorrectly narrows the type here:
// https://github.com/microsoft/TypeScript/issues/43966.
// TODO: Remove/Update once https://github.com/microsoft/TypeScript/issues/43966 is resolved.
return {
...dirOrPipe,
ref: ref.cloneWithAlias(alias),
} as T;
};
}
}

0 comments on commit 80d6475

Please sign in to comment.