balena-supervisor/typings/blinking.d.ts
Cameron Diver 9decea1d3b
refactor: Convert supervisor api module to typescript
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-08 11:59:53 +00:00

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