mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00

This gives all dto classes a common super class for usage of the type system. Signed-off-by: Philip Molares <philip.molares@udo.edu>
20 lines
476 B
TypeScript
20 lines
476 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsBoolean } from 'class-validator';
|
|
|
|
import { BaseDto } from '../utils/base.dto.';
|
|
|
|
export class NoteMediaDeletionDto extends BaseDto {
|
|
/**
|
|
* Should the associated mediaUploads be keept
|
|
* @default false
|
|
* @example false
|
|
*/
|
|
@IsBoolean()
|
|
@ApiProperty()
|
|
keepMedia: boolean;
|
|
}
|