UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

5 lines (4 loc) 526 B
import type { PrimitiveSchema } from '../../../schema/index.js'; import type { FormatterReturn, FormatterYield } from './formatter.js'; import type { FormatAttrValueOptions } from './options.js'; export declare function primitiveSchemaFormatter(schema: PrimitiveSchema, rawValue: unknown, { format, transform, valuePath }?: FormatAttrValueOptions<PrimitiveSchema>): Generator<FormatterYield<PrimitiveSchema, FormatAttrValueOptions<PrimitiveSchema>>, FormatterReturn<PrimitiveSchema, FormatAttrValueOptions<PrimitiveSchema>>>;