DylanPiercey / local-devices

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

adding typescript definition #2

Closed nolazybits closed 6 years ago

nolazybits commented 6 years ago

Adding the typescript definition file to the project. import in code like this

// import the type with
import {IDevice} from "local-devices";

// to import the library you can use this style
// import findLocalDevices = require("local-devices");
// or the next one
import * as findLocalDevices from "local-devices";

Thanks

DylanPiercey commented 6 years ago

Awesome, thanks.

DylanPiercey commented 6 years ago

Released as 1.1.1 👍