Skip to content

Commit 9ce2821

Browse files
committed
tsAny
1 parent cb6702e commit 9ce2821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schema-typescript/src/schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function createInterfaceDeclaration(
130130
if (schema.additionalProperties) {
131131
const additionalType =
132132
typeof schema.additionalProperties === 'boolean'
133-
? t.tsStringKeyword()
133+
? t.tsAnyKeyword()
134134
: getTypeForProp(ctx, schema.additionalProperties, [], schema);
135135
const indexSignature = t.tsIndexSignature(
136136
[t.identifier('key')], // index name, can be any valid name

0 commit comments

Comments
 (0)