New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: work around 'noImplicityAny' incompatibility due to ts3.7 update #34798
Conversation
08cfaa9
to
dc5e61a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
dc5e61a
to
3030685
Compare
You can preview 3030685 at https://pr34798-3030685.ngbuilds.io/. |
we should try to reuse as many dependencies as we can from the top level node_modules.
previously they didn't which was a bug/oversight.
skipLibCheck=false is currently the default (in tsc 3.7.4) but it wouldn't be shocking if the default changed in the future because skipLibCheck=true makes more sense in almost all scenarios. So just to be defensive and explicit, I'm setting the flag to false even though it's the current default.
3030685
to
5da86df
Compare
You can preview 5da86df at https://pr34798-5da86df.ngbuilds.io/. |
Typescript 3.7 now emits d.ts files for getters differently than prior versions, and there seems to be a bug in how it strips private types without replacing them with explicit 'any' type. This then leads to compilation failures in projects compiled against our packages that don't have skipLibCheck turned on but do have strict or noImplicitAny check on. I'm working around this by marking the affected getters as @internal and adding a test to prevent future regressions. I believe this is a TypeScript bug, and I filed a bug report: microsoft/TypeScript#36216
5da86df
to
355ecdf
Compare
merge-assistance: global approval |
You can preview 355ecdf at https://pr34798-355ecdf.ngbuilds.io/. |
previously they didn't which was a bug/oversight. PR Close #34798
skipLibCheck=false is currently the default (in tsc 3.7.4) but it wouldn't be shocking if the default changed in the future because skipLibCheck=true makes more sense in almost all scenarios. So just to be defensive and explicit, I'm setting the flag to false even though it's the current default. PR Close #34798
…#34798) Typescript 3.7 now emits d.ts files for getters differently than prior versions, and there seems to be a bug in how it strips private types without replacing them with explicit 'any' type. This then leads to compilation failures in projects compiled against our packages that don't have skipLibCheck turned on but do have strict or noImplicitAny check on. I'm working around this by marking the affected getters as @internal and adding a test to prevent future regressions. I believe this is a TypeScript bug, and I filed a bug report: microsoft/TypeScript#36216 PR Close #34798
) we should try to reuse as many dependencies as we can from the top level node_modules. PR Close #34798
previously they didn't which was a bug/oversight. PR Close #34798
skipLibCheck=false is currently the default (in tsc 3.7.4) but it wouldn't be shocking if the default changed in the future because skipLibCheck=true makes more sense in almost all scenarios. So just to be defensive and explicit, I'm setting the flag to false even though it's the current default. PR Close #34798
…#34798) Typescript 3.7 now emits d.ts files for getters differently than prior versions, and there seems to be a bug in how it strips private types without replacing them with explicit 'any' type. This then leads to compilation failures in projects compiled against our packages that don't have skipLibCheck turned on but do have strict or noImplicitAny check on. I'm working around this by marking the affected getters as @internal and adding a test to prevent future regressions. I believe this is a TypeScript bug, and I filed a bug report: microsoft/TypeScript#36216 PR Close #34798
…7 update (angular#34798) This reverts commit 63c9c2d.
…ular#34798) This reverts commit f2a5454.
…ngular#34798) This reverts commit 7dc74de.
…son (angular#34798) This reverts commit 39ab72e.
Upstream fix in TypeScript has been backported to 3.6.5: https://github.com/microsoft/TypeScript/releases/tag/v3.6.5 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Typescript 3.7 now emits d.ts files for getters differently than prior versions,
and there seems to be a bug in how it strips private types without replacing them
with explicit 'any' type. This then leads to compilation failures in projects compiled
against our packages that don't have skipLibCheck turned on but do have strict or
noImplicitAny check on.
I'm working around this by marking the affected getters as @internal and
adding a test to prevent future regressions.
Typescript bug report: microsoft/TypeScript#36216