We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e52c2a4 commit afa8c56Copy full SHA for afa8c56
src/parser.ts
@@ -416,6 +416,7 @@ function parseSchema(
416
const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema definition
417
via the \`patternProperty\` "${key}".`
418
ast.comment = ast.comment ? `${ast.comment}\n\n${comment}` : comment
419
+ ast.keyName = singlePatternProperty ? '[k: string]' : key
420
return {
421
ast,
422
isPatternProperty: !singlePatternProperty,
0 commit comments