Skip to content

Commit 80d6475

Browse files
committed
refactor(compiler-cli): remove unecessary type assertion
microsoft/TypeScript#43966 was fixed in 4.3.1
1 parent 27093a7 commit 80d6475

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: packages/compiler-cli/src/ngtsc/scope/src/dependency.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,9 @@ export class MetadataDtsModuleScopeResolver implements DtsModuleScopeResolver {
139139
return dirOrPipe;
140140
}
141141

142-
// TypeScript incorrectly narrows the type here:
143-
// https://github.com/microsoft/TypeScript/issues/43966.
144-
// TODO: Remove/Update once https://github.com/microsoft/TypeScript/issues/43966 is resolved.
145142
return {
146143
...dirOrPipe,
147144
ref: ref.cloneWithAlias(alias),
148-
} as T;
145+
};
149146
}
150147
}

0 commit comments

Comments
 (0)