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