balena-supervisor/typings/blinking.d.ts
Cameron Diver 56041b98ae
Fix return type for blinking instantiation function
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-11-28 15:15:04 +00:00

18 lines
297 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): { pattern: Blink };
export = blinking;
}