Skip to content

chore: update conventions to explicitly ban TypeScript enum#236

Merged
lcovar merged 1 commit intomasterfrom
BTC-3226/update-conventions
Mar 27, 2026
Merged

chore: update conventions to explicitly ban TypeScript enum#236
lcovar merged 1 commit intomasterfrom
BTC-3226/update-conventions

Conversation

@lcovar
Copy link
Copy Markdown
Contributor

@lcovar lcovar commented Mar 27, 2026

Convention #3 already said to use as const arrays, but didn't explicitly call out TypeScript enum as bad. Enums cause type cast issues when crossing WASM/serde boundaries. Added enum to the "Bad" examples and added WASM/serde reasoning to "Why".

BTC-3226

@lcovar lcovar requested a review from a team as a code owner March 27, 2026 17:12
@lcovar lcovar force-pushed the BTC-3226/update-conventions branch from 77a0c1c to ca4f248 Compare March 27, 2026 17:19
Convention #3 already said to use `as const` arrays, but didn't
explicitly call out TypeScript `enum` as bad. Enums cause type cast
issues when crossing WASM/serde boundaries. Added enum to the "Bad"
examples and added WASM/serde reasoning to "Why".

BTC-3226
@lcovar lcovar force-pushed the BTC-3226/update-conventions branch from ca4f248 to f99ceee Compare March 27, 2026 17:20
@lcovar lcovar enabled auto-merge March 27, 2026 17:24
@lcovar lcovar merged commit 4413c75 into master Mar 27, 2026
13 checks passed
@lcovar lcovar deleted the BTC-3226/update-conventions branch March 27, 2026 17:28
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.

2 participants