mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +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;
|
let empty = true;
|
||||||
// first check if there are any index signatures, so for example `[name: string]: Foo`
|
// first check if there are any index signatures, so for example `[name: string]: Foo`
|
||||||
if (typeof decl.indexSignature !== 'undefined' && typeof decl.indexSignature.parameters !== 'undefined') {
|
if (typeof decl.indexSignature !== 'undefined' && typeof decl.indexSignature.parameters !== 'undefined') {
|
||||||
|
out.dynamic = true;
|
||||||
|
|
||||||
for (const param of decl.indexSignature.parameters) {
|
for (const param of decl.indexSignature.parameters) {
|
||||||
empty = false;
|
empty = false;
|
||||||
const template: ElasticsearchDynamicTemplate = {};
|
const template: ElasticsearchDynamicTemplate = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user