@@ -17,7 +17,7 @@ type BuildFilterFn = (
1717 attributePath : string ,
1818 namePlaceholder : string ,
1919 valuePlaceholder : string ,
20- attributeNames : { [ key : string ] : string } ,
20+ attributeNames : Record < string , string > ,
2121 values : any [ ] ,
2222 existingValueNames : string [ ] | undefined ,
2323 propertyMetadata : PropertyMetadata < any > | undefined ,
@@ -56,7 +56,7 @@ export function deepFilter(obj: any, filterFn: (value: any) => boolean): any {
5656
5757 return returnArr . length ? new Set ( returnArr ) : null
5858 } else if ( isPlainObject ( obj ) ) {
59- const returnObj : { [ key : string ] : any } = { }
59+ const returnObj : Record < string , any > = { }
6060
6161 forEach ( obj , ( value : any , key : string ) => {
6262 const item = deepFilter ( value , filterFn )
@@ -156,7 +156,7 @@ function buildInConditionExpression(
156156 attributePath : string ,
157157 namePlaceholder : string ,
158158 valuePlaceholder : string ,
159- attributeNames : { [ key : string ] : string } ,
159+ attributeNames : Record < string , string > ,
160160 values : any [ ] ,
161161 existingValueNames : string [ ] | undefined ,
162162 propertyMetadata : PropertyMetadata < any > | undefined ,
@@ -189,7 +189,7 @@ function buildBetweenConditionExpression(
189189 attributePath : string ,
190190 namePlaceholder : string ,
191191 valuePlaceholder : string ,
192- attributeNames : { [ key : string ] : string } ,
192+ attributeNames : Record < string , string > ,
193193 values : string [ ] ,
194194 existingValueNames : string [ ] | undefined ,
195195 propertyMetadata : PropertyMetadata < any > | undefined ,
@@ -222,7 +222,7 @@ function buildDefaultConditionExpression(
222222 attributePath : string ,
223223 namePlaceholder : string ,
224224 valuePlaceholder : string ,
225- attributeNames : { [ key : string ] : string } ,
225+ attributeNames : Record < string , string > ,
226226 values : any [ ] ,
227227 existingValueNames : string [ ] | undefined ,
228228 propertyMetadata : PropertyMetadata < any > | undefined ,
0 commit comments