dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
9 lines (8 loc) • 487 B
TypeScript
import type { ListSchema } from '../../../../schema/index.js';
import type { ComputeObject } from '../../../../types/computeObject.js';
import type { FormattedValueJSONSchema } from './schema.js';
export type FormattedListJSONSchema<SCHEMA extends ListSchema> = ComputeObject<{
type: 'array';
items: FormattedValueJSONSchema<SCHEMA['elements']>;
}>;
export declare const getFormattedListJSONSchema: <SCHEMA extends ListSchema>(schema: SCHEMA) => FormattedListJSONSchema<SCHEMA>;