TheThingsArchive / node-app-sdk

The Things Network Application SDK for Node.JS
https://www.thethingsnetwork.org/docs/node-js/
MIT License
41 stars 28 forks source link

ttn with TypeScript #87

Closed piechade closed 4 years ago

piechade commented 6 years ago

Could not find a declaration file for module 'ttn'. 'c:/Users/Dennis/Documents/Development/Projects/sensor-data/sensor-data-processing/server/node_modules/ttn/dist/index.js' implicitly has an 'any' type. Try npm install @types/ttn if it exists or add a new declaration (.d.ts) file containing declare module 'ttn';

noerw commented 6 years ago

For a past project I wrote a TypeScript definition (didn't check back in a while if it still works) in case you want this, but don't want to generate a definition from the flow annotations

johanstokking commented 6 years ago

We'll be adding TypeScript support in V3 SDK.