Skip to content

Commit 83d0af1

Browse files
committed
fix: dynamo type fix
1 parent 54c714c commit 83d0af1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/external-db-dynamodb/src/dynamo_schema_requests_utils.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { SystemTable } from './dynamo_utils'
44
import { UpdateCommandInput } from '@aws-sdk/lib-dynamodb/dist-types/commands/UpdateCommand'
55
import { CreateTableCommandInput } from '@aws-sdk/client-dynamodb/dist-types/commands/CreateTableCommand'
66

7-
export const updateColumnsExpression = (collectionName: any, columns: any) => ({
7+
8+
9+
export const updateColumnsExpression = (collectionName: any, columns: any): UpdateCommandInput => ({
810
TableName: SystemTable,
911
Key: {
1012
tableName: collectionName
@@ -50,7 +52,7 @@ export const changeColumnTypeExpression = (collectionName: string, column: Input
5052
},
5153
})
5254

53-
export const createTableExpression = (collectionName: any) => ({
55+
export const createTableExpression = (collectionName: string): CreateTableCommandInput => ({
5456
TableName: collectionName,
5557
KeySchema: [{ AttributeName: '_id', KeyType: 'HASH' }],
5658
AttributeDefinitions: [{ AttributeName: '_id', AttributeType: 'S' }],

0 commit comments

Comments
 (0)