mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
fix: make fields with index signatures a dynamic mapping
This commit is contained in:
@@ -222,6 +222,8 @@ function handleDeclarationReflection(decl: DeclarationReflection,
|
||||
let empty = true;
|
||||
// first check if there are any index signatures, so for example `[name: string]: Foo`
|
||||
if (typeof decl.indexSignature !== 'undefined' && typeof decl.indexSignature.parameters !== 'undefined') {
|
||||
out.dynamic = true;
|
||||
|
||||
for (const param of decl.indexSignature.parameters) {
|
||||
empty = false;
|
||||
const template: ElasticsearchDynamicTemplate = {};
|
||||
|
||||
Reference in New Issue
Block a user