01-20-2019 03:52
01-20-2019 03:52
Currently the SDK has the same module names for the almost the same modules.
But there are differences between using inbox inside App or Companion (that weird nextFile vs pop).
This makes really difficult to have precission with typings, because there is no way to have 2 different modules with the same name and in the same project (the CLI generated one).
So my suggestion is to add some kind of prefix to, at least, those modules shared between different clients (app, companion, settings) that have different implementations.
For example:
import {inbox} from "@fitbit/app-file-transfer";
and
import {inbox} from "@fitbit/companion-file-transfer";
Answered! Go to the Best Answer.
01-20-2019 04:03
01-20-2019 04:03
Thanks, I'll pass this on.
01-20-2019 04:03
01-20-2019 04:03
Thanks, I'll pass this on.
01-20-2019 04:24
01-20-2019 04:24
Thank you! 🙂