Skip to content

Commit cf9fed8

Browse files
fix(typing): resolve ts issue
1 parent b5419e1 commit cf9fed8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dynamo/request/batchgetsingletable/batch-get-single-table.request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { map } from 'rxjs/operators'
55
import { Metadata } from '../../../decorator/metadata/metadata'
66
import { MetadataHelper } from '../../../decorator/metadata/metadata-helper'
77
import { Mapper } from '../../../mapper/mapper'
8-
import { Attributes, Attributes } from '../../../mapper/type/attribute.type'
8+
import { Attributes } from '../../../mapper/type/attribute.type'
99
import { ModelConstructor } from '../../../model/model-constructor'
1010
import { DynamoRx } from '../../dynamo-rx'
1111
import { BatchGetSingleTableResponse } from './batch-get-single-table.response'

src/mapper/mapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class Mapper {
5656
*/
5757
const propertyValue = Mapper.getPropertyValue(item, propertyKey)
5858

59-
let attributeValue: any | undefined | null
59+
let attributeValue: Attribute | undefined | null
6060

6161
// TODO concept maybe make this configurable how to map undefined & null values
6262
if (propertyValue === undefined || propertyValue === null) {
@@ -105,7 +105,7 @@ export class Mapper {
105105
} else if (attributeValue === null) {
106106
// empty values (string, set, list) will be ignored too
107107
} else {
108-
mapped[propertyMetadata ? propertyMetadata.nameDb : <string>propertyKey] = attributeValue
108+
;(<any>mapped)[propertyMetadata ? propertyMetadata.nameDb : propertyKey] = attributeValue
109109
}
110110
}
111111
})

0 commit comments

Comments
 (0)