@ts-cloud/core 0.7.34 → 0.7.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drivers/types.d.ts +7 -0
- package/package.json +2 -2
package/dist/drivers/types.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { CloudConfig, EnvironmentType, SiteConfig } from '../types';
|
|
2
2
|
export type CloudProviderName = 'aws' | 'hetzner';
|
|
3
|
+
/**
|
|
4
|
+
* Exhaustive provider map. Provider-specific contract tests key off this type,
|
|
5
|
+
* so adding a provider without adding its resilience coverage is a type error.
|
|
6
|
+
*/
|
|
7
|
+
export type CloudProviderContract<T> = {
|
|
8
|
+
[Provider in CloudProviderName]: T;
|
|
9
|
+
};
|
|
3
10
|
export interface ComputeTarget {
|
|
4
11
|
id: string;
|
|
5
12
|
name?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-cloud/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core CloudFormation generation library for ts-cloud",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.com>",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"typecheck": "tsc --noEmit"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ts-cloud/aws-types": "0.7.
|
|
34
|
+
"@ts-cloud/aws-types": "0.7.36"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "^7.0.2"
|