@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
14 lines • 827 B
TypeScript
/**
* This covers the case where the user has the required application but we have
* a minimum version requirement in place. For instance I may have BTC installed on version
* 1.0.0 but we've defined that the minimum is 2.0.0.
*
* Up until now, all we were doing was throwing an "UpdateYourApp" error, the problem is
* that sometimes there is no app available for that device firmware version. If there's no
* app that fulfils the minimum version defined we are instead now throwing a fw update error.
*/
import { DeviceInfo } from "@ledgerhq/types-live";
import { AppAndVersion } from "./connectApp";
declare const isUpdateAvailable: (deviceInfo: DeviceInfo, appAndVersion: AppAndVersion, checkMustUpdate?: boolean) => Promise<boolean>;
export default isUpdateAvailable;
//# sourceMappingURL=isUpdateAvailable.d.ts.map