Split compose types into interface and implementation

This splits `App`, `Network`, `Service` and `Volume` which used to be
defined as classes into an interface and a class implementation that is
not exported. This will allow to work with just the types in some cases
and prevent circular dependencies when importing.

Change-type: patch
This commit is contained in:
Felipe Lalanne
2024-05-15 13:44:05 -04:00
parent 435a363716
commit 94de4006a0
26 changed files with 143 additions and 60 deletions

View File

@ -1,7 +1,7 @@
import { expect } from 'chai';
import { isRight } from 'fp-ts/lib/Either';
import App from '~/src/compose/app';
import Network from '~/src/compose/network';
import { App } from '~/src/compose/app';
import { Network } from '~/src/compose/network';
import * as config from '~/src/config';
import * as testDb from '~/src/db';
import * as dbFormat from '~/src/device-state/db-format';