import { DynamoDB } from 'aws-sdk' ; import DynamoToPromise from '../dynamo-to-promise' ; export interface PutResult < TableModel > { data : TableModel ; } export async function put < Entity > ( item , putInput , dynamoPromise ) { const putOutput = await dynamoPromise . put ( putInput ) ; const result = { data : item , } ; return result ; }