Skip to content

Commit afa8c56

Browse files
committed
Fix bug where single pattern property objects did not honor strictIndexSignatures
Signed-off-by: Yoriyasu Yano <[email protected]>
1 parent e52c2a4 commit afa8c56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ function parseSchema(
416416
const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema definition
417417
via the \`patternProperty\` "${key}".`
418418
ast.comment = ast.comment ? `${ast.comment}\n\n${comment}` : comment
419+
ast.keyName = singlePatternProperty ? '[k: string]' : key
419420
return {
420421
ast,
421422
isPatternProperty: !singlePatternProperty,

0 commit comments

Comments
 (0)