|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
832 bytes
|
| Line | |
|---|
| 1 | export = address;
|
|---|
| 2 |
|
|---|
| 3 | declare interface Address {
|
|---|
| 4 | ip: string;
|
|---|
| 5 | ipv6: string;
|
|---|
| 6 | mac: string;
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | declare type AddressCallback = (err: Error, addr: Address) => void;
|
|---|
| 10 | declare type MacCallback = (err: Error, addr: string) => void;
|
|---|
| 11 | declare type DnsCallback = (err: Error, servers: string[]) => void;
|
|---|
| 12 |
|
|---|
| 13 | declare function address(interfaceName: string, callback: AddressCallback): void;
|
|---|
| 14 | declare function address(callback: AddressCallback): void;
|
|---|
| 15 |
|
|---|
| 16 | declare namespace address {
|
|---|
| 17 | const MAC_IP_RE: RegExp;
|
|---|
| 18 | const MAC_RE: RegExp;
|
|---|
| 19 |
|
|---|
| 20 | function dns(filepath: string, callback: DnsCallback): void;
|
|---|
| 21 | function dns(callback: DnsCallback): void;
|
|---|
| 22 |
|
|---|
| 23 | function ip(interfaceName?: string): any;
|
|---|
| 24 | function ipv6(interfaceName?: string): any;
|
|---|
| 25 |
|
|---|
| 26 | function mac(interfaceName: string, callback: MacCallback): void;
|
|---|
| 27 | function mac(callback: MacCallback): void;
|
|---|
| 28 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.