Skip to content

BaseCommand

type BaseCommand<Output, Schema> = object;

Interface-like type for command classes to extend from that defines the execute method.

This is what enables the command-based pattern for DynamoDB operations that makes tree-shaking possible.

Output

The output type of the command’s execute method.

Schema extends ZodObject

The Zod schema type associated with the DynamoEntity.

execute(entity): Promise<Output>;

DynamoEntity<Schema>

Promise<Output>