mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
- Add bundle.ts fixture with comprehensive type tests for feature() - Add tests demonstrating type-safe feature flags using declaration merging - Document type safety approach in bundler docs The tests cover: - Basic feature() usage and return types - Feature flags in conditionals, ternaries, and logical operators - Feature flags in functions, classes, async/generator contexts - Import aliases - Error cases with @ts-expect-error - Declaration merging for type-safe overloads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Bun Documentation
Official documentation for Bun: the fast, all-in-one JavaScript runtime.
Development
Install the Mintlify CLI to preview the documentation locally:
bun install -g mint
Run the development server:
mint dev
The site will be available at http://localhost:3000.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.