UNPKG

dynamodb-toolbox

Version:

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

14 lines (13 loc) 526 B
import type { SchemaProps, SchemaRequiredProp } from '../types/index.js'; import type { ItemAttributes } from './types.js'; export declare class ItemSchema<ATTRIBUTES extends ItemAttributes = ItemAttributes> { type: 'item'; attributes: ATTRIBUTES; props: SchemaProps; savedAttributeNames: Set<string>; keyAttributeNames: Set<string>; requiredAttributeNames: Record<SchemaRequiredProp, Set<string>>; constructor(attributes: ATTRIBUTES); get checked(): boolean; check(path?: string): void; }