diff --git a/wifi/frameworks/ets/taihe/wifiManager/idl/ohos.wifiManager.taihe b/wifi/frameworks/ets/taihe/wifiManager/idl/ohos.wifiManager.taihe index 6f20136b212530cfdeb0380df59f164c1f4b0139..bf2deaefc83884e6071101b75ef9d84400652001 100644 --- a/wifi/frameworks/ets/taihe/wifiManager/idl/ohos.wifiManager.taihe +++ b/wifi/frameworks/ets/taihe/wifiManager/idl/ohos.wifiManager.taihe @@ -481,7 +481,7 @@ function GetCurrentGroupSync(): WifiP2pGroupInfo; @async function GetCurrentGroupWithCallback(): WifiP2pGroupInfo; @!sts_inject(""" -export function on(type: string, cb: (arg_0: NullishType) => void) { +export function on(type: string, cb: (arg_0: Any) => void) { switch(type) { case "wifiStateChange": return onWifiStateChange(cb); case "wifiConnectionChange": return onWifiConnectionChange(cb); @@ -501,7 +501,7 @@ export function on(type: string, cb: (arg_0: NullishType) => void) { default: throw new Error(`Unknown type: ${type}`); } } -export function off(type: string, cb?: (arg_0: NullishType) => void) { +export function off(type: string, cb?: (arg_0: Any) => void) { switch(type) { case "wifiStateChange": return offWifiStateChange(cb as (((data: int) => void) | undefined)); case "wifiConnectionChange": return offWifiConnectionChange(cb as (((data: int) => void) | undefined));