You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use it for a TS-based project, but unfortunately since there are no published types, the typescript server throws errors. As a local fix, I manually added a flightradar24-client.d.ts file. Of course, it would be nicer if the types were recognised automatically.
Would you be willing to convert this client to TS or would you accept a PR that does this? As an interim solution, it would also be possible to add this .d.ts file manually, which could look something like this:
Would you be willing to convert this client to TS […]?
No, sorry. Using TypeScript is not worth the hassle for me.
As an interim solution, it would also be possible to add this .d.ts file manually, which could look something like this:
I would merge a "shallow" type declaration file that merely specifies the returned objects (the objects the returned Promise resolves with, to be exact) as-is, without specifying all entries.
Otherwise, I know for sure that I would modify index.js without thinking about index.d.ts, and a wrong type declaration file is worse than a vague one.
Hey, thank you for your client!
I would like to use it for a TS-based project, but unfortunately since there are no published types, the typescript server throws errors. As a local fix, I manually added a
flightradar24-client.d.ts
file. Of course, it would be nicer if the types were recognised automatically.Would you be willing to convert this client to TS or would you accept a PR that does this? As an interim solution, it would also be possible to add this .d.ts file manually, which could look something like this:
{ "name": "flightradar24-client", "files": [ "index.js", "lib" ], + "typings": "types.d.ts", "keywords": [ "aviation", "airplanes", "flights", "flightradar24" ] }
The text was updated successfully, but these errors were encountered: