Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tsconfig and make nav interfaces exposable for consumption (#1223
) **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 into `lib/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 side** <img width="1086" alt="Screenshot 2024-11-04 at 9 23 19 AM" src="https://github.com/user-attachments/assets/75d746c3-018e-44a8-8ee3-4f37e336c363"> **When building the library with `.ts` extension - there are type hints form NextInstance side** <img width="1124" alt="Screenshot 2024-11-04 at 9 20 02 AM" src="https://github.com/user-attachments/assets/26ec377d-feb1-48ca-a18b-e54835de91ff"> ### Description of Changes * Update typescript definition file of nav types to typescript file * Add declaration true to tsconfig ### 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"}_
- Loading branch information