File

src/workspace/dtos/delete-workspace-member.dto.ts

Index

Properties

Properties

members
Type : literal type[]
Decorators :
@ApiProperty({description: 'An array of member objects to delete from the workspace', isArray: true, example: undefined})
@IsArray()
@Type(undefined)
import { ApiProperty } from "@nestjs/swagger";
import { IsArray } from "class-validator";
import { Type } from "class-transformer";
import { NewMember } from "./create-workspace.dto";

export class DeleteWorkspaceMembersDto {
  @ApiProperty({
    description: "An array of member objects to delete from the workspace",
    isArray: true,
    example: [{ id: 12345 }],
  })
  @IsArray()
  @Type(() => NewMember)
  members: { id: number }[];
}

results matching ""

    No results matching ""