import { DynamoDbTable } from '@aws/dynamodb-data-mapper' ; import { Class } from '../types' ; export * from './Connection' ; export * from './Subscription' ; export const assign = Object . assign ; export const createModel = < T extends Class > ( { model , table , } ) => { Object . defineProperties ( model . prototype , { [ DynamoDbTable ] : { value : table } , } ) ; return model ; } ;