dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
5 lines (4 loc) • 510 B
TypeScript
import type { InputValue, ItemSchema, Schema } from '../../../schema/index.js';
import type { InferWriteValueOptions, ParseAttrValueOptions } from './options.js';
import type { ParserReturn, ParserYield } from './parser.js';
export declare function schemaParser<OPTIONS extends ParseAttrValueOptions = {}>(schema: Schema, inputValue: unknown, options?: OPTIONS): Generator<ParserYield<Schema, OPTIONS>, ParserReturn<Schema, OPTIONS>, InputValue<ItemSchema, InferWriteValueOptions<OPTIONS, true>> | undefined>;