dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
21 lines (20 loc) • 885 B
TypeScript
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';
export 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>;