File

src/modules/http/entities/response/collection-response-wrapper.entity.intf.ts

Description

An implementation class of this interface is used by the StarkHttpService in order to wrap the Http response from all requests aimed to return a collection of items.

Extends

StarkResponseWrapper

Index

Properties

Properties

metadata
metadata: StarkCollectionMetadata
Type : StarkCollectionMetadata

Holds the metadata related to the collection of items contained in the response.

import { StarkResponseWrapper } from "./response-wrapper.entity.intf";
import { StarkResource } from "../resource.entity.intf";
import { StarkCollectionMetadata } from "../metadata";

/**
 * An implementation class of this interface is used by the {@link StarkHttpService} in order to wrap the
 * Http response from all requests aimed to return a collection of items.
 */
export interface StarkCollectionResponseWrapper<P extends StarkResource> extends StarkResponseWrapper<P[]> {
	/**
	 * Holds the metadata related to the collection of items contained in the response.
	 */
	metadata: StarkCollectionMetadata;
}

results matching ""

    No results matching ""