File: index.d.ts

package info (click to toggle)
node-macaddress 0.5.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152 kB
  • sloc: javascript: 410; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
declare module 'macaddress' {
  export type MacAddresCallback = (err: any, data: any) => void;

  export type MacAddressOneCallback = (err: any, mac: string) => void;

  export function one(callback: MacAddressOneCallback): void;
  export function one(iface?: string): Promise<string>;
  export function one(iface: string, callback: MacAddressOneCallback): void;

  export function all(callback: MacAddresCallback): void;
  export function all(): Promise<any>;

  export function networkInterfaces(): any;
}