feat: make options editable after instantiation
All checks were successful
Build and push Docker image / build (push) Successful in 10s

This commit is contained in:
Hamcha 2024-04-08 18:11:35 +02:00
parent ad61d3e637
commit 3a4ea79afc
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@ import { DefinitionsNetwork } from "../compose-schema.ts";
export class Network { export class Network {
constructor( constructor(
public readonly name: string, public readonly name: string,
private options: DefinitionsNetwork public options: DefinitionsNetwork
) {} ) {}
toCompose(): DefinitionsNetwork { toCompose(): DefinitionsNetwork {

View file

@ -3,7 +3,7 @@ import { DefinitionsService } from "../compose-schema.ts";
export class Service { export class Service {
constructor( constructor(
public readonly name: string, public readonly name: string,
private options: DefinitionsService public options: DefinitionsService
) {} ) {}
toCompose(): DefinitionsService { toCompose(): DefinitionsService {

View file

@ -3,7 +3,7 @@ import { DefinitionsVolume } from "../compose-schema.ts";
export class Volume { export class Volume {
constructor( constructor(
public readonly name: string, public readonly name: string,
private options: DefinitionsVolume public options: DefinitionsVolume
) {} ) {}
toCompose(): DefinitionsVolume { toCompose(): DefinitionsVolume {