balena-supervisor/typings/blinking.d.ts

18 lines
297 B
TypeScript
Raw Normal View History

declare module 'blinking' {
interface Pattern {
blinks?: number;
onDuration?: number;
offDuration?: number;
pause?: number;
}
interface Blink {
2018-11-02 14:17:58 +00:00
start: (pattern: Pattern) => void;
stop: () => void;
}
function blinking(ledFile: string): { pattern: Blink };
export = blinking;
}