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

packages/compiler-cli/src/ngtsc/scope/src/dependency.ts

Lines changed: 1 addition & 4 deletions
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)