UNPKG

dynamodb-toolbox

Version:

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

8 lines (7 loc) 388 B
import type { BinarySchema, PrimitiveSchema } from '../../../../schema/index.js'; export type FormattedPrimitiveJSONSchema<SCHEMA extends PrimitiveSchema> = SCHEMA extends BinarySchema ? { type: 'string'; } : { type: SCHEMA['type']; }; export declare const getFormattedPrimitiveJSONSchema: <SCHEMA extends PrimitiveSchema>(schema: SCHEMA) => FormattedPrimitiveJSONSchema<SCHEMA>;