# @types/pi-pir-sensor

> TypeScript definitions for pi-pir-sensor

Latest version **0.0.2** (published 2023-11-07) · MIT license · 10 weekly downloads

## Install

```sh
npm install @types/pi-pir-sensor
pnpm add @types/pi-pir-sensor
yarn add @types/pi-pir-sensor
bun add @types/pi-pir-sensor
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-11-07 |
| First published | 2022-04-13 |
| Weekly downloads | 10 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/pi-pir-sensor
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pi-pir-sensor
- npm.io page: https://npm.io/package/@types/pi-pir-sensor

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.0.2 (latest) — 2023-11-07
- 0.0.0 (ts3.9) — 2022-04-13
- 0.0.1 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pi-pir-sensor/index.d.ts)
````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](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Mario Murrent](https://github.com/meecodebymariomurrent).

---
_Source: https://npm.io/package/@types/pi-pir-sensor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
