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