mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #24059 from mattdsteele/patch-1
Update pin.read callback
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user