Installation
npm install --save @types/wol
Summary
This package contains type definitions for wol (https://github.com/song940/wake-on-lan#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wol.
index.d.ts
/// <reference types="node" />
export as namespace wol;
export type WakeCallback = (error: Error | null, result?: boolean) => void;
export interface WakeOptions {
address?: string | undefined;
port?: number | undefined;
}
export function wake(mac: string, callback: WakeCallback): Promise<boolean>;
export function wake(mac: string, options?: WakeOptions, callback?: WakeCallback): Promise<boolean>;
export function createMagicPacket(mac: string): Buffer;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/node
Credits
These definitions were written by Ovidiu Pruteanu.