Nutmeg Pumpkin Macchiato

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

    1.0.1 • 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

    // 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.

    Keywords

    none

    Install

    npm i @types/wol

    DownloadsWeekly Downloads

    67

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.02 kB

    Total Files

    4

    Last publish

    Collaborators

    • types