fix: make type def for TerraformState more specific
This commit is contained in:
20
test.ts
20
test.ts
@@ -90,17 +90,21 @@ type TerraformStateResource = {
|
|||||||
type: string;
|
type: string;
|
||||||
name: string;
|
name: string;
|
||||||
provider: string;
|
provider: string;
|
||||||
instances: [{ attributes: Record<string, JsonValue> }];
|
|
||||||
|
instances: [
|
||||||
|
{
|
||||||
|
attributes: Record<string, JsonValue>;
|
||||||
|
},
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
type TerraformOutput = {
|
||||||
|
type: string;
|
||||||
|
value: JsonValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface TerraformState {
|
export interface TerraformState {
|
||||||
outputs: {
|
outputs: Record<string, TerraformOutput>;
|
||||||
[key: string]: {
|
|
||||||
type: string;
|
|
||||||
value: any;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
resources: [TerraformStateResource, ...TerraformStateResource[]];
|
resources: [TerraformStateResource, ...TerraformStateResource[]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user