Skip to content

feat: kind(err)#22

Closed
madkarmaa wants to merge 3 commits into
mainfrom
feat/err-kind
Closed

feat: kind(err)#22
madkarmaa wants to merge 3 commits into
mainfrom
feat/err-kind

Conversation

@madkarmaa

Copy link
Copy Markdown
Owner

What changed?

Add kind(err) method for pattern matching of errors. Current solution is to switch over err.code, which works, but this is closer yo Rust.

Why?

Closes #16

Checklist

  • Tests added or updated
  • bun run typecheck && bun run test passes

@madkarmaa madkarmaa added feat New feature or request minor Will result in a minor version bump labels May 25, 2026
@madkarmaa madkarmaa changed the title fix: include test files in tsconfig feat: kind(err) May 25, 2026
@madkarmaa madkarmaa closed this May 25, 2026
@madkarmaa madkarmaa deleted the feat/err-kind branch May 25, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature or request minor Will result in a minor version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: .kind() instead of .code

1 participant