balena-supervisor/typings/blinking.d.ts
Cameron Diver 273224547c
Convert blink module to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-05-02 09:36:21 +01:00

19 lines
284 B
TypeScript

declare module 'blinking' {
interface Pattern {
blinks?: number;
onDuration?: number;
offDuration?: number;
pause?: number;
}
interface Blink {
start: (pattern: Pattern) => void
stop: () => void;
}
function blinking(ledFile: string): Blink;
export = blinking;
}