mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
586 B
TypeScript
18 lines
586 B
TypeScript
// Type definitions for raspi-peripheral 2.0
|
|
// Project: https://github.com/nebrius/raspi-peripheral
|
|
// Definitions by: Bryan Hughes <https://github.com/nebrius>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
/// <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;
|
|
}
|