A TypeScript generator that creates strongly-typed interfaces and enums from the Bungie.net API OpenAPI specification.
- Automatically generates TypeScript types from Bungie API schemas
- Creates interfaces and enums with full type safety
- Generates API endpoint classes with proper request/response typing
- Preserves documentation comments from the API spec
- Handles complex nested types and dictionary types
# Clone the repo with submodules
git clone --recursive https://github.com/[username]/bungie-types-generator.git
# Install dependencies
npm install# Generate all types
npm start
# Only generate interfaces/enums
npm run gen
# Only generate endpoint classes
npm run endpoints
Generated output:
output/enum.ts- Generated enum typesoutput/interface.ts- Generated interface typesoutput/class/[category]/index.ts- Generated API endpoint classes
npm run gen- Generate interfaces and enumsnpm run endpoints- Generate API endpoint classesnpm start- Run full generation
MIT © Francesco Lombardo