File

src/auth/tenant/dto/update-tenant.dto.ts

Description

DTO for updating a tenant. All fields are optional except those inherited as required. The id field is omitted as it cannot be changed.

Extends

PartialType( OmitType(CreateTenantDto, ["id"] as const), )

import { OmitType, PartialType } from "@nestjs/swagger";
import { CreateTenantDto } from "./create-tenant.dto";

/**
 * DTO for updating a tenant.
 * All fields are optional except those inherited as required.
 * The `id` field is omitted as it cannot be changed.
 */
export class UpdateTenantDto extends PartialType(
    OmitType(CreateTenantDto, ["id"] as const),
) {}

results matching ""

    No results matching ""