Repository navigation
fix(ui): fix typescript errors so the lib can be typechecked - #7905
Conversation
The ui lib failed to compile because the .woff2 font imports in fonts.ts had no module declaration (TS2307). Add ambient *.woff/*.woff2 declarations (matching the explorer and widget-configurator apps) and wire up a typecheck target so the lib is covered by CI. Part of cowprotocol#7828.
|
@tenderdeve is attempting to deploy a commit to the cow-dev Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
WalkthroughThe UI library gains an Nx ChangesUI TypeScript support
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Part of #7828 — scoped to the
uilib (one lib per PR, as the issue suggests).tsc -p libs/ui/tsconfig.lib.jsonfailed with 25 TS2307 errors, all from the.woff2font imports insrc/fonts.tshaving no module declaration. (skipLibCheckdoesn't help here — the fonts are bare module specifiers, not third-party.d.ts.)*.woff/*.woff2declarations inlibs/ui/src/declarations.d.ts, matching the pattern already used inapps/explorerandapps/widget-configurator.typechecktarget tolibs/ui/project.json(same ascowswap-frontend) so the lib is covered going forward.nx typecheck uinow passes cleanly. Happy to follow up with the remaining libs in separate PRs.Summary by CodeRabbit