Skip to content

Commit a070522

Browse files
committed
fix: Correct types for upgrade state
1 parent 15bb109 commit a070522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react-native-mcu-manager/src/Upgrade.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Upgrade {
8080
updateFileUri: string,
8181
updateOptions: UpgradeOptions,
8282
private onProgress?: (progress: number) => void,
83-
private onStateChange?: (state: string) => void
83+
private onStateChange?: (state: FirmwareUpgradeState) => void
8484
) {
8585
this.id = String(
8686
Math.floor(100000000 + Math.random() * 900000000)
@@ -94,7 +94,7 @@ class Upgrade {
9494
(id: string, progress: number) => {
9595
this.onProgress?.(progress);
9696
},
97-
(id: string, state: string) => {
97+
(id: string, state: FirmwareUpgradeState) => {
9898
this.onStateChange?.(state);
9999
}
100100
);

0 commit comments

Comments
 (0)