From 096cd214cec4f07f859f870d413af89f43ed6d49 Mon Sep 17 00:00:00 2001 From: Parkreiner Date: Fri, 19 Jul 2024 20:18:11 +0000 Subject: [PATCH] fix: make type def for TerraformState more specific --- test.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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[]]; }