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.