UNPKG

dynamodb-toolbox

Version:

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

11 lines (10 loc) 589 B
import type { TupleSchema } from '../../../../schema/index.js'; import type { ComputeObject } from '../../../../types/computeObject.js'; import type { FormattedValueJSONSchemaRec } from './schema.js'; export type FormattedTupleJSONSchema<SCHEMA extends TupleSchema> = ComputeObject<{ type: 'array'; items: FormattedValueJSONSchemaRec<SCHEMA['elements']>; minLength: SCHEMA['elements']['length']; maxLength: SCHEMA['elements']['length']; }>; export declare const getFormattedTupleJSONSchema: <SCHEMA extends TupleSchema>(schema: SCHEMA) => FormattedTupleJSONSchema<SCHEMA>;