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