This CLI tool generates TypeScript types and helpers based on Godot's GDScript files.
Install
# local project
bun i godot2ts
# global
bun i -g godot2tsUse
godot2ts --helpThe default command with no arguments will scan the current working directory recursively for .gd files and will generate one typescript file with all gd scripts converted to typescript.
Important
This tool marks TypeScript as a peer-dependency and requires it to be available in node_modules at runtime.
Install dependencies:
bun installCreate a build
bun run buildRun tests
bun run testFormat & Lint
bun run format