diff --git a/test.ts b/test.ts index 8483089..6bdf9d9 100644 --- a/test.ts +++ b/test.ts @@ -90,17 +90,21 @@ type TerraformStateResource = { type: string; name: string; provider: string; - instances: [{ attributes: Record }]; + + instances: [ + { + attributes: Record; + }, + ]; }; -export interface TerraformState { - outputs: { - [key: string]: { - type: string; - value: any; - }; - }; +type TerraformOutput = { + type: string; + value: JsonValue; +}; +export interface TerraformState { + outputs: Record; resources: [TerraformStateResource, ...TerraformStateResource[]]; }