1.0.4 • Published 6 months ago
@types/wol v1.0.4
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
// Type definitions for wol 1.0
// Project: https://github.com/song940/wake-on-lan#readme
// Definitions by: Ovidiu Pruteanu <https://github.com/ovidiupruteanu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Fri, 02 Jul 2021 18:05:43 GMT
- Dependencies: @types/node
- Global values:
wol
Credits
These definitions were written by Ovidiu Pruteanu.