From bc89bd860af859b0c59f2ed747e5bbd5d950386b Mon Sep 17 00:00:00 2001 From: Samuel Rowe Date: Fri, 29 Jul 2022 21:12:12 +0530 Subject: [PATCH] feat(frontend): updated `INetworkTopLevel` interface * Made `position` optional in `INodeItem`. --- services/frontend/src/types/index.ts | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/services/frontend/src/types/index.ts b/services/frontend/src/types/index.ts index 76db33c..0ecf0ff 100644 --- a/services/frontend/src/types/index.ts +++ b/services/frontend/src/types/index.ts @@ -87,19 +87,15 @@ export interface INetworkTopLevel { driver_opts: KeyValPair; attachable: boolean; enable_ipv6: boolean; - ipam: { - driver: string; - config: { - subnet: string; - ip_range: string; - gateway: string; - aux_addresses: { - host1: string; - host2: string; - host3: string; - }; + ipam?: { + driver?: string; + config?: { + subnet?: string; + ip_range?: string; + gateway?: string; + aux_addresses?: Record; }[]; - options: KeyValPair; + options?: Record; }; internal: boolean; labels: string[] | KeyValPair;