UNPKG

dynamodb-toolbox

Version:

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

8 lines (7 loc) 480 B
import type { AnyOfSchema } from '../../../../schema/index.js'; import type { ComputeObject } from '../../../../types/computeObject.js'; import type { FormattedValueJSONSchemaRec } from './schema.js'; export type FormattedAnyOfJSONSchema<SCHEMA extends AnyOfSchema> = ComputeObject<{ anyOf: FormattedValueJSONSchemaRec<SCHEMA['elements']>; }>; export declare const getFormattedAnyOfJSONSchema: <SCHEMA extends AnyOfSchema>(schema: SCHEMA) => FormattedAnyOfJSONSchema<SCHEMA>;