mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-21 06:33:30 +00:00
988a1c9e9a
This updates balena lint to the latest version to enable eslint support and unblock Typescript updates. This is a huge number of changes as the linting rules are much more strict now, requiring modifiying most files in the codebase. This commit also bumps the test dependency `rewire` as that was interfering with the update of balena-lint Change-type: patch
25 lines
551 B
TypeScript
25 lines
551 B
TypeScript
export { ContainerInspectInfo } from 'dockerode';
|
|
|
|
declare module 'dockerode' {
|
|
// Extend the HostConfig interface with the missing fields.
|
|
// TODO: Add these upstream to DefinitelyTyped
|
|
interface HostConfig {
|
|
Sysctls: { [sysctlsOpt: string]: string };
|
|
GroupAdd: string[];
|
|
UsernsMode: string;
|
|
}
|
|
|
|
export interface DockerHealthcheck {
|
|
Test: string[];
|
|
Interval?: number;
|
|
Timeout?: number;
|
|
Retries?: number;
|
|
StartPeriod?: number;
|
|
}
|
|
|
|
interface ContainerCreateOptions {
|
|
Healthcheck?: DockerHealthcheck;
|
|
StopTimeout?: number;
|
|
}
|
|
}
|