Skip to content

Commit 9bfabbb

Browse files
Added typescript validation for switchLocation
1 parent 001d7ef commit 9bfabbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SystemSetting.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface SystemSetting {
5050
switchWifi: () => void;
5151
isLocationEnabled: () => Promise<boolean>;
5252
getLocationMode: () => Promise<number>;
53-
switchLocation: () => void;
53+
switchLocation: (callback: () => void) => void;
5454
isBluetoothEnabled: () => Promise<boolean>;
5555
switchBluetooth: () => void;
5656
switchBluetoothSilence: () => void;

0 commit comments

Comments
 (0)