lolleko / gmod-typescript

Tool to generate typescript definitions for garrysmod.
MIT License
21 stars 8 forks source link

Typescript Declarations for Gmod

Intended for use with https://typescripttolua.github.io

What's new

TODO

Usage

  1. npm install gmod-types
  2. modify the tsconfig, add the declaration files to your types or typeRoots
  3. use "skipLibCheck": true, in your tsconfig.json if you get duplicate identifier errors.

Development

  1. Clone
  2. npm install
  3. npm run build to build the project
  4. npm run generate to generate declarations

Program structure