-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Poor type alias emitted in composite project declaration files #36551
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
Comments
I've done a little more characterization. It seems this behavior is affected by the absence of |
@JasonGore build using typescript@next is giving me error . Can you please share the repro that builds without having to use some script so we can easily investigate this. Thanks
|
Did you follow the steps I listed in the description? Is there a reason they don't apply? |
we don't want to use custom script to build. We should be able to build using |
I've pushed an update. The previous steps still apply, but I've also tried:
|
Also, since we're not using project references (due to this issue) you will still have to do |
Will be fixed by #37444 |
TypeScript Versions: 3.7.4, 3.8.0-dev.20200131
Search Terms:
composite project declaration type alias emitted
Code
Steps to repro:
git clone https://github.com/JasonGore/office-ui-fabric-react.git
cd office-ui-fabric-react
git checkout jg/ts-composite-emit
yarn
yarn buildto styling
A build error will result due to an API error. This API error is caused by the emit described below.
Expected behavior:
The code in getFocusStyle.ts:
emits in
packages/styling/lib/styles/getFocusStyle.d.ts
as:Actual behavior:
getFocusStyle.ts emits as:
ICSSPixelUnitRule
is a type that's used nowhere inside ofpackages/styling
. The correct output can be obtained by commenting outcomposite
in packages/styling/tsconfig.json andtsBuildInfoFile
in ts.js (to prevent a TS error on having it specified withoutcomposite
.)The text was updated successfully, but these errors were encountered: