UNPKG

random-tables-mcp

Version:

An MCP (Model Context Protocol) server for managing and rolling on random-table assets used in tabletop RPGs. Create, update, and roll on random tables with support for nested tables, weighted entries, and range-based results.

21 lines 616 B
/** * Use case for deleting a roll template. */ export class DeleteTemplateUseCase { /** * Creates a new DeleteTemplateUseCase instance. * @param templateRepository The repository to use for template deletion. */ constructor(templateRepository) { this.templateRepository = templateRepository; } /** * Executes the use case. * @param id The ID of the template to delete. * @throws Error if the template does not exist. */ async execute(id) { await this.templateRepository.delete(id); } } //# sourceMappingURL=delete-template-use-case.js.map