-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(devkit): fix extractLayoutDirectory typescript types to better reflect allowed params and return value #15339
fix(devkit): fix extractLayoutDirectory typescript types to better reflect allowed params and return value #15339
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
93dd4ea
to
b475264
Compare
any tips on looking into the build failures? 47min of build logs to parse through to figure out why its failing doesn't sound super enjoyable 😅 |
…flect allowed params and return value
b475264
to
ddbf2d3
Compare
☁️ Nx Cloud ReportCI is running/has finished running commands for commit ddbf2d3. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
In other projects with more strict TS settings the types on the
extractLayoutDirectory
did not line up with the allowed params and return value. Example of this I found is in the@nrwl/react
package that calls this function withoptions.directory
which isstring | undefined
which I am not sure why TS is not complaining about this 🤔nx/packages/react/src/generators/library/lib/normalize-options.ts
Lines 20 to 22 in b87f838