-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update tsconfig and make nav interfaces exposable for consumption #1223
Conversation
✅ Deploy Preview for veda-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thanks for fixing, I'm getting the correct type annotations now ✅ |
b8366ef
to
0839c98
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.
I checked the built asset (lib/index.d.ts
) has Nav related types. thanks for working on it 🙇 Maybe easy lint warnings can be fixed (ex. linebreaks) can be fixed since we are on it? but not a blocker !
@@ -5,6 +5,7 @@ | |||
"moduleResolution": "node", | |||
"esModuleInterop": true, | |||
"strictNullChecks": true, | |||
"declaration": true, |
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.
for my education, can you tell me what this line does?
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.
here is more about it https://www.typescriptlang.org/tsconfig/declaration.html
## 🎉 Features * Card image/description independent of hero image/description by @dzole0311 in #1244 ## 🚀 Improvements * Cookie consent code cleanup by @snmln in #1199 , and @hanbyul-here in #1240 , and @hanbyul-here in #1241 * Add ADR about design system change by @j08lue in #890 * Update condition to run playwright tests on release branches by @dzole0311 in #1228 * Update STYLE_GUIDE.md by @AliceR in #1227 * Fix lint configuration by @AliceR in #1219 * Add tests for the AOI feature specification by @AliceR in #1216 * Set data catalog filters to be closed by default by @vgeorge in #1243 * Update tsconfig and make nav interfaces exposable for consumption by @sandrahoang686 in #1223 ## 🐛 Fixes * Hotfix to hide the external link badge from cards by @dzole0311 in #1231 ## New Contributors * @vgeorge made their first contribution in #1243 **Full Changelog**: v5.9.0...v5.10.0
Related Ticket: #1186
Related PR: developmentseed/next-veda-ui#10
Note
To expose interfaces from veda-ui - they should be defined in
.ts
files vs.d.ts
files. This is because parcel isn't building the typescript definition files intolib/index.d.ts
but does so when the file is.ts
.When building the library with
.d.ts
extension - there are NO type hints from NextInstance sideWhen building the library with
.ts
extension - there are type hints form NextInstance sideDescription of Changes
Notes & Questions About Changes
Found this thread about typescript definition files and parcel build here parcel-bundler/parcel#1240
Validation / Testing
{Update with info on what can be manually validated in the Deploy Preview link for example "Validate style updates to selection modal do NOT affect cards"}