first commit
This commit is contained in:
28
app_vue/node_modules/address/lib/address.d.ts
generated
vendored
Normal file
28
app_vue/node_modules/address/lib/address.d.ts
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
export = address;
|
||||
|
||||
declare interface Address {
|
||||
ip: string;
|
||||
ipv6: string;
|
||||
mac: string;
|
||||
}
|
||||
|
||||
declare type AddressCallback = (err: Error, addr: Address) => void;
|
||||
declare type MacCallback = (err: Error, addr: string) => void;
|
||||
declare type DnsCallback = (err: Error, servers: string[]) => void;
|
||||
|
||||
declare function address(interfaceName: string, callback: AddressCallback): void;
|
||||
declare function address(callback: AddressCallback): void;
|
||||
|
||||
declare namespace address {
|
||||
const MAC_IP_RE: RegExp;
|
||||
const MAC_RE: RegExp;
|
||||
|
||||
function dns(filepath: string, callback: DnsCallback): void;
|
||||
function dns(callback: DnsCallback): void;
|
||||
|
||||
function ip(interfaceName?: string): any;
|
||||
function ipv6(interfaceName?: string): any;
|
||||
|
||||
function mac(interfaceName: string, callback: MacCallback): void;
|
||||
function mac(callback: MacCallback): void;
|
||||
}
|
Reference in New Issue
Block a user