File tree 1 file changed +3
-3
lines changed
packages/core/src/getters
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export const getObject = ({
130
130
if ( arr . length - 1 === index ) {
131
131
if ( item . additionalProperties ) {
132
132
if ( isBoolean ( item . additionalProperties ) ) {
133
- acc . value += `\n [key: string]: any ;\n }` ;
133
+ acc . value += `\n [key: string]: unknown ;\n }` ;
134
134
} else {
135
135
const resolvedValue = resolveValue ( {
136
136
schema : item . additionalProperties ,
@@ -166,7 +166,7 @@ export const getObject = ({
166
166
if ( item . additionalProperties ) {
167
167
if ( isBoolean ( item . additionalProperties ) ) {
168
168
return {
169
- value : `{ [key: string]: any }` + nullable ,
169
+ value : `{ [key: string]: unknown }` + nullable ,
170
170
imports : [ ] ,
171
171
schemas : [ ] ,
172
172
isEnum : false ,
@@ -206,7 +206,7 @@ export const getObject = ({
206
206
207
207
return {
208
208
value :
209
- ( item . type === 'object' ? '{ [key: string]: any }' : 'unknown' ) +
209
+ ( item . type === 'object' ? '{ [key: string]: unknown }' : 'unknown' ) +
210
210
nullable ,
211
211
imports : [ ] ,
212
212
schemas : [ ] ,
You can’t perform that action at this time.
0 commit comments