hedgedoc/src/history/history-entry.dto.ts
David Mehren af35cd1bb2
HistoryEntryDto: Add doc comments
Signed-off-by: David Mehren <git@herrmehren.de>
2021-01-25 22:45:52 +01:00

23 lines
476 B
TypeScript

/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { IsBoolean, ValidateNested } from 'class-validator';
import { NoteMetadataDto } from '../notes/note-metadata.dto';
export class HistoryEntryDto {
/**
* Metadata of this note
*/
@ValidateNested()
metadata: NoteMetadataDto;
/**
* True if this note is pinned
* @example false
*/
@IsBoolean()
pinStatus: boolean;
}