fix: make type def for TerraformState more specific

pull/273/head
Parkreiner 10 months ago
parent 6a87fd18e5
commit 096cd214ce

@ -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>;
},
];
}; };
export interface TerraformState { type TerraformOutput = {
outputs: { type: string;
[key: string]: { value: JsonValue;
type: string; };
value: any;
};
};
export interface TerraformState {
outputs: Record<string, TerraformOutput>;
resources: [TerraformStateResource, ...TerraformStateResource[]]; resources: [TerraformStateResource, ...TerraformStateResource[]];
} }

Loading…
Cancel
Save