Skip to content

Commit

Permalink
tsAny
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed May 28, 2024
1 parent cb6702e commit 9ce2821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schema-typescript/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ce2821

Please sign in to comment.