Installation
npm install --save @types/raspi-peripheral
Summary
This package contains type definitions for raspi-peripheral (https://github.com/nebrius/raspi-peripheral).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raspi-peripheral.
index.d.ts
/// <reference types="node" />
import { EventEmitter } from "events";
export class Peripheral extends EventEmitter {
private _alive;
readonly alive: boolean;
private _pins;
readonly pins: number[];
constructor(pins: string | number | Array<string | number>);
destroy(): void;
validateAlive(): void;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by Bryan Hughes.