RevisionMetadataDto: Add doc comments

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-01-25 22:44:20 +01:00
parent 43194500e9
commit 84143eec7d
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -8,12 +8,24 @@ import { IsDate, IsNumber } from 'class-validator';
import { Revision } from './revision.entity'; import { Revision } from './revision.entity';
export class RevisionMetadataDto { export class RevisionMetadataDto {
/**
* ID of this revision
* @example 13
*/
@IsNumber() @IsNumber()
id: Revision['id']; id: Revision['id'];
/**
* Datestring of the time this revision was created
* @example "2020-12-01 12:23:34"
*/
@IsDate() @IsDate()
createdAt: Date; createdAt: Date;
/**
* Number of characters in this revision
* @example 142
*/
@IsNumber() @IsNumber()
length: number; length: number;
} }