godot2ts
v0.0.20
Published
Generate Typescript Types based on GDScript Files
Downloads
111
Readme
🤖 Godot to TypeScript
This CLI tool generates TypeScript types and helpers based on Godot's GDScript files.
Usage
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_modulesat runtime.
Contributing
Install dependencies:
bun installCreate a build
bun run buildRun tests
bun run testFormat & Lint
bun run format