1+ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
12import type { TypeConverterResolversOpts } from '../../composeWithMongoose' ;
23import { MergeAbleHelperArgsOpts } from '../../resolvers/helpers' ;
34import { mergeStringAndStringArraysFields } from './mergeCustomizationOptions' ;
@@ -31,9 +32,9 @@ export function mergePrimitiveTypeFields(
3132export function mergeFilterOperatorsOptsMap (
3233 baseFilterOperatorField : TypeFieldMap ,
3334 childFilterOperatorField ?: TypeFieldMap
34- ) {
35+ ) : TypeFieldMap {
3536 const baseOptsKeys = Object . keys ( baseFilterOperatorField ) ;
36- const baseOptsTypes = { } as Record < string , any > ;
37+ const baseOptsTypes = { } as TypeFieldMap ;
3738 for ( const key of baseOptsKeys ) {
3839 baseOptsTypes [ key ] = 'string[]' ;
3940 }
@@ -49,7 +50,13 @@ export function mergeFilterOperatorsOptsMap(
4950 return childFilterOperatorField ;
5051}
5152
52- export function mergeArraysTypeFields ( baseField : any , childField : any , argOptsType : TypeFieldMap ) {
53+ export function mergeArraysTypeFields (
54+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
55+ baseField : any ,
56+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
57+ childField : any ,
58+ argOptsType : TypeFieldMap
59+ ) : TypeFieldMap {
5360 let merged = childField !== undefined ? childField : { } ;
5461 if ( Array . isArray ( argOptsType ) ) {
5562 for ( const argType of argOptsType ) {
@@ -68,7 +75,11 @@ export function mergeArraysTypeFields(baseField: any, childField: any, argOptsTy
6875 return merged ;
6976}
7077
71- export function mergeMapTypeFields ( baseField : any , childField : any , argOptsTypes : TypeFieldMap ) {
78+ export function mergeMapTypeFields (
79+ baseField : TypeFieldMap ,
80+ childField : TypeFieldMap | undefined ,
81+ argOptsTypes : TypeFieldMap
82+ ) : TypeFieldMap {
7283 const merged = childField === undefined ? { } : childField ;
7384
7485 if ( argOptsTypes !== null && typeof argOptsTypes === 'object' ) {
0 commit comments