js icon indicating copy to clipboard operation
js copied to clipboard

Export types and interfaces

Open drewzh opened this issue 1 year ago • 0 comments

Currently, you export types as a namespace and as a named export, so usage is a little convoluted:

import type { Types as MeshtasticTypes } from '@meshtastic/js';

params: MeshtasticTypes.HttpConnectionParameters

But that's not the best.

It would be great if you could simply export each type directly so we can do....

import type { HttpConnectionParameters } from '@meshtastic/js';

params: HttpConnectionParameters

Many thanks, Drew

drewzh avatar Apr 10 '24 15:04 drewzh