dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
14 lines (13 loc) • 588 B
TypeScript
import type { SchemaRequiredProp } from '../types/index.js';
import type { ItemAttributes, ItemSchemaProps } from './types.js';
export declare class ItemSchema<ATTRIBUTES extends ItemAttributes = ItemAttributes, PROPS extends ItemSchemaProps = ItemSchemaProps> {
type: 'item';
attributes: ATTRIBUTES;
props: PROPS;
savedAttributeNames: Set<string>;
keyAttributeNames: Set<string>;
requiredAttributeNames: Record<SchemaRequiredProp, Set<string>>;
constructor(attributes: ATTRIBUTES, props?: PROPS);
get checked(): boolean;
check(path?: string): void;
}