Use stricter typings

Change-type: patch
This commit is contained in:
Thodoris Greasidis
2023-05-19 20:59:24 +03:00
parent 98e91c0607
commit 1a6fe1f3de
12 changed files with 98 additions and 87 deletions

View File

@ -124,7 +124,7 @@ export default class DeviceInitCmd extends Command {
const balena = getBalenaSdk();
// Get application and
const application = (await getApplication(
const application = await getApplication(
balena,
options.fleet ||
(
@ -137,7 +137,7 @@ export default class DeviceInitCmd extends Command {
},
},
},
)) as ApplicationWithDeviceType;
);
// Register new device
const deviceUuid = balena.models.device.generateUniqueKey();