mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-29 14:16:36 +00:00
Specify flashImageToDrive return type
Change-type: patch
This commit is contained in:
parent
4203296414
commit
7991d40760
@ -71,7 +71,7 @@ const getErrorMessageFromCode = (errorCode: string) => {
|
|||||||
return '';
|
return '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const flashImageToDrive = async (goToSuccess: () => void) => {
|
async function flashImageToDrive(goToSuccess: () => void): Promise<string> {
|
||||||
const devices = selection.getSelectedDevices();
|
const devices = selection.getSelectedDevices();
|
||||||
const image: any = selection.getImage();
|
const image: any = selection.getImage();
|
||||||
const drives = _.filter(availableDrives.getDrives(), (drive: any) => {
|
const drives = _.filter(availableDrives.getDrives(), (drive: any) => {
|
||||||
@ -129,7 +129,7 @@ const flashImageToDrive = async (goToSuccess: () => void) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @summary Get progress button label
|
* @summary Get progress button label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user