DylanPiercey / local-devices

🔮 Find devices connected to the current local network.
MIT License
140 stars 27 forks source link

Typescript Return Type for Single Result Missing #49

Open peacememories opened 3 years ago

peacememories commented 3 years ago

Hi, thanks for writing and maintaining this library :)

From what I can tell, the findLocalDevices function can either return a single device, or an array, depending on whether it is called with an ip parameter. This does not seem to be reflected in the type signature, which only includes the list version.

It would be great if the single device return type could be added ^_^