Specify flashImageToDrive return type

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-02-17 18:43:01 +01:00
parent 4203296414
commit 7991d40760

View File

@ -71,7 +71,7 @@ const getErrorMessageFromCode = (errorCode: string) => {
return '';
};
const flashImageToDrive = async (goToSuccess: () => void) => {
async function flashImageToDrive(goToSuccess: () => void): Promise<string> {
const devices = selection.getSelectedDevices();
const image: any = selection.getImage();
const drives = _.filter(availableDrives.getDrives(), (drive: any) => {
@ -129,7 +129,7 @@ const flashImageToDrive = async (goToSuccess: () => void) => {
}
return '';
};
}
/**
* @summary Get progress button label