Skip to content

Commit

Permalink
Table query — get lost typings back
Browse files Browse the repository at this point in the history
  • Loading branch information
famence committed May 15, 2023
1 parent 10905f5 commit 2e5cb52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/dynamoose/lib/Table/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ export class Table extends InternalPropertiesClass<TableInternalProperties> {
"arrayItemsMerger": utils.merge_objects.schemaAttributesMerger
})(...createTableAttributeParams);
},
"getHashKey": () => {
"getHashKey": (): string => {
return this.getInternalProperties(internalProperties).models[0].Model.getInternalProperties(internalProperties).getHashKey();
},
"getRangeKey": () => {
"getRangeKey": (): string | void => {
return this.getInternalProperties(internalProperties).models[0].Model.getInternalProperties(internalProperties).getRangeKey();
},
"runSetupFlow": async (): Promise<void> => {
Expand Down Expand Up @@ -356,7 +356,7 @@ export class Table extends InternalPropertiesClass<TableInternalProperties> {
* ```
* @readonly
*/
get rangeKey () {
get rangeKey (): string | void {
return this.getInternalProperties(internalProperties).getRangeKey();
}
/**
Expand Down

0 comments on commit 2e5cb52

Please sign in to comment.