Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#24059 from mattdsteele/patch-1
Browse files Browse the repository at this point in the history
Update pin.read callback
  • Loading branch information
armanio123 authored Mar 9, 2018
2 parents 44d475f + b26647b commit 29caa01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/johnny-five/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,12 @@ export declare class Pin {
mode: number;

static write(pin: number, value: number): void;
static read(pin: number, cb: (data: number) => void): void;
static read(pin: number, cb: (error: Error, data: number) => void): void;
query(cb: (pin: PinState) => void): void;
high(): void;
low(): void;
write(value: number): void;
read(cb: (value: number) => void): void;
read(cb: (error: Error, value: number) => void): void;
on(event: string, cb: () => void): this;
on(event: "high", cb: () => void): this;
on(event: "low", cb: () => void): this;
Expand Down

0 comments on commit 29caa01

Please sign in to comment.