Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Suggestion: Split modules for app, companion & settings

ANSWERED

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";
Best Answer
1 BEST ANSWER

Accepted Solutions

Thanks, I'll pass this on.

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Thanks, I'll pass this on.

Best Answer
0 Votes

Thank you! 🙂

Best Answer
0 Votes