import { EntityTarget } from '@typedorm/common' ; import { DynamoDB } from 'aws-sdk' ; export type LazyTransactionWriteItemListLoader = { lazyLoadTransactionWriteItems : ( previousItemBody : any ) => DynamoDB . DocumentClient . TransactWriteItem [ ] ; entityClass : EntityTarget < any > ; primaryKeyAttributes : any ; } ; export const isLazyTransactionWriteItemListLoader = ( response ) : response is LazyTransactionWriteItemListLoader => ! ! ( ( response as LazyTransactionWriteItemListLoader ) . lazyLoadTransactionWriteItems && typeof ( response as LazyTransactionWriteItemListLoader ) . lazyLoadTransactionWriteItems === 'function' ) ;