meshtastic / js

JS/TS library for interfacing with Meshtastic devices
https://meshtastic.org
GNU General Public License v3.0
65 stars 33 forks source link

Export types and interfaces #84

Open drewzh opened 3 months ago

drewzh commented 3 months ago

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