UNPKG

dynamodb-toolbox

Version:

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

5 lines (4 loc) 416 B
import type { ItemSchema } from '../../../schema/index.js'; import type { ParseValueOptions } from './options.js'; import type { ParserReturn, ParserYield } from './parser.js'; export declare function itemParser<SCHEMA extends ItemSchema, OPTIONS extends ParseValueOptions = {}>(schema: SCHEMA, inputValue: unknown, options?: OPTIONS): Generator<ParserYield<ItemSchema, OPTIONS>, ParserReturn<ItemSchema, OPTIONS>>;