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

0.0.2 • Public • Published

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

/// <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: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Mario Murrent.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pi-pir-sensor

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.5 kB

Total Files

5

Last publish

Collaborators

  • types