UNPKG

dynamodb-toolbox

Version:

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

6 lines (5 loc) 282 B
import type { BinarySchema } from './schema.js'; export type ResolveBinarySchema<SCHEMA extends BinarySchema> = SCHEMA['props'] extends { enum: Uint8Array[]; } ? SCHEMA['props']['enum'][number] : Uint8Array; export type ResolvedBinarySchema = ResolveBinarySchema<BinarySchema>;