fix: Rework code to avoid prettier errors

Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2018-11-06 11:07:55 +00:00
parent 0820dbca68
commit 00bd88c50d
No known key found for this signature in database
GPG Key ID: 69264F9C923F55C1

View File

@ -19,6 +19,15 @@ export interface ServiceHealthcheck {
retries?: number;
}
export interface ServiceNetworkDictionary {
[networkName: string]: {
aliases?: string[];
ipv4Address?: string;
ipv6Address?: string;
linkLocalIps?: string[];
};
}
// This is the config directly from the compose file (after running it
// through _.camelCase)
export interface ServiceComposeConfig {
@ -47,16 +56,7 @@ export interface ServiceComposeConfig {
labels?: { [labelName: string]: string };
running: boolean;
networkMode?: string;
networks?:
| string[]
| {
[networkName: string]: {
aliases?: string[];
ipv4Address?: string;
ipv6Address?: string;
linkLocalIps?: string[];
};
};
networks?: string[] | ServiceNetworkDictionary;
pid?: string;
pidsLimit?: number;
ports?: string[];