Skip to content

chore: guard undefined values in uno-preset-rtl#696

Merged
danielroe merged 3 commits intomainfrom
jg/test-types-uno
Feb 2, 2026
Merged

chore: guard undefined values in uno-preset-rtl#696
danielroe merged 3 commits intomainfrom
jg/test-types-uno

Conversation

@43081j
Copy link
Contributor

@43081j 43081j commented Feb 1, 2026

Part of the test cleanup.

When we eventually type-check this, it'll fail right now as these are
all T | undefined. Adding ! since in all cases, we know it is not
null.

Part of the test cleanup.

When we eventually type-check this, it'll fail right now as these are
all `T | undefined`. Adding `!` since in all cases, we know it is not
null.
@vercel
Copy link

vercel bot commented Feb 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 2, 2026 10:22am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 2, 2026 10:22am
npmx-lunaria Ignored Ignored Feb 2, 2026 10:22am

Request Review

@wojtekmaj
Copy link
Contributor

Personally I'm not a fan of non-null assertions. They give you a false sense of security should things ever go south and produce harder-to-debug errors than they need to be. Why not just add error handling and throw if something is unexpectedly missing?

@danielroe danielroe changed the title chore: add non-null assertions to uno preset chore: guard undefined values in uno-preset-rtl Feb 2, 2026
@danielroe danielroe added this pull request to the merge queue Feb 2, 2026
Merged via the queue into main with commit 6466625 Feb 2, 2026
17 checks passed
@danielroe danielroe deleted the jg/test-types-uno branch February 2, 2026 10:32
taskylizard pushed a commit to taskylizard/npmx.dev that referenced this pull request Feb 7, 2026
Co-authored-by: Daniel Roe <daniel@roe.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants