mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
refactor: extract Watchable<T> base class for SDK effect wrappers
Eliminates boilerplate across 7 wrapper classes (GetContainerIp, GetHostInfo, GetOutboundGateway, GetServiceManifest, GetSslCertificate, GetStatus, GetSystemSmtp) by moving shared const/once/watch/onChange/ waitFor logic into an abstract Watchable<T> base class.
This commit is contained in:
@@ -15,6 +15,7 @@ export { once } from './once'
|
||||
export { asError } from './asError'
|
||||
export * as Patterns from './patterns'
|
||||
export * from './typeHelpers'
|
||||
export { Watchable } from './Watchable'
|
||||
export { GetContainerIp } from './GetContainerIp'
|
||||
export { GetHostInfo } from './GetHostInfo'
|
||||
export { GetOutboundGateway } from './GetOutboundGateway'
|
||||
|
||||
Reference in New Issue
Block a user