From 9ce28215b64ada718b5c082cfa702c4f9923c01f Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Tue, 28 May 2024 17:45:37 +0200 Subject: [PATCH] tsAny --- packages/schema-typescript/src/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schema-typescript/src/schema.ts b/packages/schema-typescript/src/schema.ts index 318ec65..c9a962c 100644 --- a/packages/schema-typescript/src/schema.ts +++ b/packages/schema-typescript/src/schema.ts @@ -130,7 +130,7 @@ function createInterfaceDeclaration( if (schema.additionalProperties) { const additionalType = typeof schema.additionalProperties === 'boolean' - ? t.tsStringKeyword() + ? t.tsAnyKeyword() : getTypeForProp(ctx, schema.additionalProperties, [], schema); const indexSignature = t.tsIndexSignature( [t.identifier('key')], // index name, can be any valid name