dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
11 lines (10 loc) • 376 B
TypeScript
import type { Schema, SchemaRequiredProp } from '../../schema/index.js';
export interface EntityAttributes {
[KEY: string]: Schema;
}
export interface SchemaOf<ATTRIBUTES extends EntityAttributes> {
attributes: ATTRIBUTES;
savedAttributeNames: Set<string>;
keyAttributeNames: Set<string>;
requiredAttributeNames: Record<SchemaRequiredProp, Set<string>>;
}