UNPKG

@chubbyts/chubbyts-api

Version:

[![CI](https://github.com/chubbyts/chubbyts-api/workflows/CI/badge.svg?branch=master)](https://github.com/chubbyts/chubbyts-api/actions?query=workflow%3ACI) [![Coverage Status](https://coveralls.io/repos/github/chubbyts/chubbyts-api/badge.svg?branch=maste

7 lines (6 loc) 908 B
import type { Handler } from '@chubbyts/chubbyts-http-types/dist/handler'; import type { ResponseFactory } from '@chubbyts/chubbyts-http-types/dist/message-factory'; import type { Encoder } from '@chubbyts/chubbyts-decode-encode/dist/encoder/encoder'; import type { ResolveModelList } from '../repository.js'; import type { EmbeddedSchema, EnrichedModelListSchema, EnrichModelList, InputModelListSchema, InputModelSchema } from '../model.js'; export declare const createListHandler: <IMS extends InputModelSchema, IMLS extends InputModelListSchema, EMS extends EmbeddedSchema = EmbeddedSchema, EMLS extends EmbeddedSchema = EmbeddedSchema>(inputModelListSchema: IMLS, resolveModelList: ResolveModelList<IMS, IMLS>, responseFactory: ResponseFactory, enrichedModelListSchema: EnrichedModelListSchema<IMS, IMLS, EMS, EMLS>, encoder: Encoder, enrichModelList?: EnrichModelList<IMS, IMLS, EMS, EMLS>) => Handler;