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";
Adding the typescript definition file to the project. import in code like this
Thanks