balena-supervisor/typings/blinking.d.ts
2018-11-02 14:50:13 +00:00

18 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;
}