mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-02 00:00:04 +00:00
Remove trailing whitespaces
This commit is contained in:
20
wake_on_lan/wake_on_lan.d.ts
vendored
20
wake_on_lan/wake_on_lan.d.ts
vendored
@@ -8,30 +8,30 @@
|
||||
declare module wol {
|
||||
|
||||
export interface WakeOptions {
|
||||
|
||||
|
||||
/**
|
||||
* The ip address to which the packet is send (default: 255.255.255.255)
|
||||
*/
|
||||
address?:string;
|
||||
|
||||
|
||||
/**
|
||||
* Number of packets to send (default: 3)
|
||||
*/
|
||||
num_packets?:number;
|
||||
|
||||
|
||||
/**
|
||||
* The interval between packets (default: 100ms)
|
||||
*/
|
||||
interval?:number;
|
||||
|
||||
|
||||
/**
|
||||
* The port to send to (default: 9)
|
||||
*/
|
||||
port?:number;
|
||||
}
|
||||
|
||||
|
||||
type ErrorCallback = (Error:any) => void;
|
||||
|
||||
|
||||
export interface Wol {
|
||||
/**
|
||||
* Send a sequence of Wake-on-LAN magic packets to the given MAC address.
|
||||
@@ -39,7 +39,7 @@ declare module wol {
|
||||
* @param {string} macAddress the mac address of the target device
|
||||
*/
|
||||
wake(macAddress:string):void;
|
||||
|
||||
|
||||
/**
|
||||
* Send a sequence of Wake-on-LAN magic packets to the given MAC address.
|
||||
*
|
||||
@@ -47,7 +47,7 @@ declare module wol {
|
||||
* @param {ErrorCallback} callback is called when all packets have been sent or an error occurs.
|
||||
*/
|
||||
wake(macAddress:string, callback:ErrorCallback):void;
|
||||
|
||||
|
||||
/**
|
||||
* Send a sequence of Wake-on-LAN magic packets to the given MAC address.
|
||||
*
|
||||
@@ -56,10 +56,10 @@ declare module wol {
|
||||
* @param {ErrorCallback} callback is called when all packets have been sent or an error occurs.
|
||||
*/
|
||||
wake(macAddress:string, opts:WakeOptions, callback?:Function):void;
|
||||
|
||||
|
||||
/**
|
||||
* Creates a buffer with a magic packet for the given MAC address.
|
||||
*
|
||||
*
|
||||
* @param {string} macAddress mac address of the target device
|
||||
* @return {Buffer} the magic packet
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user