dasdarki-gmod-types
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

Typescript Declarations for Gmod

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

What's new

  • Updated to use new Facepunch wiki as source
  • Updated to latest tstl version (requires 0.38.0 or higher)
  • Types can now be augmented using data based transformers
    • If you want to help improve the declarations make a PR for src/transformer/modfications.json

TODO

  • create template/example project

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

  • Scrapper
  • Transformer
  • Printer
    • Print the typed objects to out/declarations.ts

Readme

Keywords

none

Package Sidebar

Install

npm i dasdarki-gmod-types

Weekly Downloads

2

Version

0.4.2

License

MIT

Unpacked Size

2.22 MB

Total Files

6

Last publish

Collaborators

  • dasdarki2