UNPKG

@lxdhub/api

Version:

Display, search and copy LXD-images using a web interface.

23 lines (20 loc) 551 B
import { ApiModelProperty } from '@nestjs/swagger'; /** * The response wrapper around the requested * data, which will be used as response, * when requesting a paginated list. */ export class ResponseDto<ItemType> { /** * Creates a new instance of a response. * @param results The results of the query */ constructor(results: ItemType) { this.results = results; } /** * The requested data */ @ApiModelProperty({ description: 'The results of the response' }) readonly results: ItemType; }