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.
Type Parameters
Section titled “Type Parameters”Output
Section titled “Output”Output
The output type of the command’s execute method.
Schema
Section titled “Schema”Schema extends ZodObject
The Zod schema type associated with the DynamoEntity.
Methods
Section titled “Methods”execute()
Section titled “execute()”execute(entity): Promise<Output>;Parameters
Section titled “Parameters”entity
Section titled “entity”DynamoEntity<Schema>
Returns
Section titled “Returns”Promise<Output>