Update Code

Signed-off-by: Yangys <yangyousheng@huawei.com>
This commit is contained in:
Yangys 2023-04-06 14:32:56 +08:00
parent f99605c4c9
commit 462ef2ec71

View File

@ -101,7 +101,7 @@ declare namespace ethernet {
function on(type: 'interfaceStateChange', callback: Callback<{ iface: string, active: boolean }>): void; function on(type: 'interfaceStateChange', callback: Callback<{ iface: string, active: boolean }>): void;
/** /**
* Unregister a callback from the ethernet interface avtive state change. * Unregister a callback from the ethernet interface active state change.
* *
* @param type interfaceStateChange. * @param type interfaceStateChange.
* @param callback including iface Indicates the ethernet interface, and active Indicates whether the interface is active. * @param callback including iface Indicates the ethernet interface, and active Indicates whether the interface is active.