import { TaggedModel } from "../types" import { MaybeItem } from "../util" import { BaseParams } from "./BaseParams" export interface PutItemParams extends BaseParams { item: MaybeItem } export async function putItem(params: PutItemParams): Promise { const { table, client, item } = params await client .put({ TableName: table.tableName, Item: item }) .promise() }