UNPKG

dynamodb-toolbox

Version:

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

22 lines (21 loc) 889 B
import type { BinarySchema } from '../binary/index.js'; import type { BinarySchemaProps } from '../binary/types.js'; import type { NumberSchema } from '../number/index.js'; import type { NumberSchemaProps } from '../number/types.js'; import type { StringSchema } from '../string/index.js'; import type { StringSchemaProps } from '../string/types.js'; import type { AtLeastOnce } from '../types/index.js'; interface SetElementProps { required?: AtLeastOnce; hidden?: false; key?: boolean; savedAs?: undefined; keyDefault?: undefined; putDefault?: undefined; updateDefault?: undefined; keyLink?: undefined; putLink?: undefined; updateLink?: undefined; } export type SetElementSchema = NumberSchema<NumberSchemaProps & SetElementProps> | StringSchema<StringSchemaProps & SetElementProps> | BinarySchema<BinarySchemaProps & SetElementProps>; export {};