dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
5 lines (4 loc) • 446 B
TypeScript
import type { ItemSchema } from '../../../schema/index.js';
import type { FormatterReturn, FormatterYield } from './formatter.js';
import type { FormatValueOptions } from './options.js';
export declare function itemFormatter<OPTIONS extends FormatValueOptions<ItemSchema> = {}>(schema: ItemSchema, rawValue: unknown, { attributes, ...restOptions }?: OPTIONS): Generator<FormatterYield<ItemSchema, OPTIONS>, FormatterReturn<ItemSchema, OPTIONS>>;