Getline-Network / getline

Distributed P2P Lending System
https://getline.in
Apache License 2.0
9 stars 6 forks source link

Enable type declaration emit from getline.ts #53

Closed q3k closed 6 years ago

q3k commented 6 years ago

This causes us to catch a few bugs on the interaction between getline.ts and the frontend.

While we're at it, we also switch the metabackend endpoint to its' TLS version.

Interestingly, after disabling allowJs (to enable declarations), tsc does not copy over src/generated/*.{js,d.ts} to dist/. I am copying them over manually, but this seems hacky.

ritave commented 6 years ago

@q3k check out http://json.schemastore.org/tsconfig schema, seems you also need to use the same dir for declarationDir as outDir. Will review rest later