nitro icon indicating copy to clipboard operation
nitro copied to clipboard

feat: Allow using `Symbol` as Method/Property name in `HybridObject`s

Open mrousavy opened this issue 2 months ago • 1 comments

Introduces the new type margelo::nitro::PropName that can now also hold a Symbol. This can be used to expose Methods/Properties on a HybridObject under a Symbol key instead of just plain String keys.

One usecase for this would be to override the Symbol.hasInstance method. This PR now also uses this for "dispose" - which is now exposed under [Symbol.dispose] to comply with the using APIs in JS.

mrousavy avatar Oct 09 '25 13:10 mrousavy

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

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
nitro-docs Skipped Skipped Oct 9, 2025 2:22pm

vercel[bot] avatar Oct 09 '25 13:10 vercel[bot]