sammydre / gir2dts

Create Gtk applications with Gjs/TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gir2dts

Generated *.d.ts files for using Gir with Typescript

install

cd myproject
npm install --save-dev gir2dts

then include in tsconfig.json

example

Original example no longer valid. TDODO.

rules

Conversion is iterative

  • numeric typedefs are replaced with 'number'
  • constructors are replaced with default having one optional hash table parameter
  • constants, functions, enums, classes, structs (as classes). Properties included in classes
  • anything else, not defined in this group of modules, gets replaced with 'any'
  • as dicovered:
    • fix with add/patch entries in gir2dts.json

differences

TBD

why?

TODO. See original: https://github.com/darkoverlordofdata/gir2dts

About

Create Gtk applications with Gjs/TypeScript

License:Other


Languages

Language:JavaScript 67.3%Language:TypeScript 18.4%Language:CoffeeScript 14.3%