@types/wol
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/wol

    Weekly Downloads

    145

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    3.54 kB

    Total Files

    5

    Last publish

    Collaborators

    • types