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