From 3a4ea79afc8aef8f52fac18b92a4507004f3017f Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 8 Apr 2024 18:11:35 +0200 Subject: [PATCH] feat: make options editable after instantiation --- src/components/network.ts | 2 +- src/components/service.ts | 2 +- src/components/volume.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/network.ts b/src/components/network.ts index 77fa3ad..04db6d5 100644 --- a/src/components/network.ts +++ b/src/components/network.ts @@ -3,7 +3,7 @@ import { DefinitionsNetwork } from "../compose-schema.ts"; export class Network { constructor( public readonly name: string, - private options: DefinitionsNetwork + public options: DefinitionsNetwork ) {} toCompose(): DefinitionsNetwork { diff --git a/src/components/service.ts b/src/components/service.ts index 572778a..2362667 100644 --- a/src/components/service.ts +++ b/src/components/service.ts @@ -3,7 +3,7 @@ import { DefinitionsService } from "../compose-schema.ts"; export class Service { constructor( public readonly name: string, - private options: DefinitionsService + public options: DefinitionsService ) {} toCompose(): DefinitionsService { diff --git a/src/components/volume.ts b/src/components/volume.ts index ed8f983..f34147b 100644 --- a/src/components/volume.ts +++ b/src/components/volume.ts @@ -3,7 +3,7 @@ import { DefinitionsVolume } from "../compose-schema.ts"; export class Volume { constructor( public readonly name: string, - private options: DefinitionsVolume + public options: DefinitionsVolume ) {} toCompose(): DefinitionsVolume {