0.0.2 • Published 6 months ago

@types/pi-pir-sensor v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/pi-pir-sensor

Summary

This package contains type definitions for pi-pir-sensor (https://github.com/opedromiranda/pi-pir-sensor).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pi-pir-sensor.

index.d.ts

// Type definitions for pi-pir-sensor 0.0
// Project: https://github.com/opedromiranda/pi-pir-sensor
// Definitions by: Mario Murrent <https://github.com/meecodebymariomurrent>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

declare class Sensor {
    lastMovement: Date;

    constructor(sensorConfiguration: Sensor.SensorConfiguration);

    start(cb?: (err: Error) => void): void;

    stop(): boolean;

    on(event: string, callback: () => void): void;
}

declare namespace Sensor {
    interface SensorConfiguration {
        pin: number;
        loop?: number;
    }
}

export = Sensor;

Additional Details

  • Last updated: Wed, 13 Apr 2022 08:31:17 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Mario Murrent.

0.0.1

7 months ago

0.0.2

6 months ago

0.0.0

2 years ago