From 3ca68c41e9543907701319fb1c7013901ce327c5 Mon Sep 17 00:00:00 2001 From: kogeletey Date: Thu, 5 Sep 2024 21:35:14 +0300 Subject: [PATCH] feat: rename types to d.ts and adding export methods --- entities/{account.ts => account.d.ts} | 0 entities/compose.d.ts | 209 ++++++++++++++++++++ entities/{deployment.ts => deployment.d.ts} | 0 entities/index.ts | 4 + entities/{provider.ts => provider.d.ts} | 0 index.ts | 1 + 6 files changed, 214 insertions(+) rename entities/{account.ts => account.d.ts} (100%) create mode 100644 entities/compose.d.ts rename entities/{deployment.ts => deployment.d.ts} (100%) create mode 100644 entities/index.ts rename entities/{provider.ts => provider.d.ts} (100%) create mode 100644 index.ts diff --git a/entities/account.ts b/entities/account.d.ts similarity index 100% rename from entities/account.ts rename to entities/account.d.ts diff --git a/entities/compose.d.ts b/entities/compose.d.ts new file mode 100644 index 0000000..be4af74 --- /dev/null +++ b/entities/compose.d.ts @@ -0,0 +1,209 @@ +type Label = { + [label: string]: string +} + +type WeightDevice = Array<{ + path: string + weight: number +}> + +type DeviceBLK = Array<{ + path: string + rate: number | string +}> + +type BuildServices = { + context: string + dockefile: string + dockerfile_inline: string + args: Label + ssh: Array + cache_from: Array + cache_to: Array + additional_contexts: Array