/
dimamir
/
undb
Обзор
Документация
Войти
/
dimamir
/
undb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/commands/src/delete-dashboard.command.ts
16 строк
505 B
nichenqin
feat: delete dashboard
21 окт 2024, 04:36
21 окт 2024, 04:36
7c9264e
Код
Авторство
О чём код?
import { deleteDashboardDTO } from "@undb/dashboard" import { Command, type CommandProps } from "@undb/domain" import { z } from "@undb/zod" export const deleteDashboardCommand = deleteDashboardDTO export type IDeleteDashboardCommand = z.infer<typeof deleteDashboardCommand> export class DeleteDashboardCommand extends Command implements IDeleteDashboardCommand { public readonly id: string constructor(props: CommandProps<IDeleteDashboardCommand>) { super(props) this.id = props.id } }