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

6 lines (5 loc) 472 B
import type { Handler } from '@chubbyts/chubbyts-http-types/dist/handler'; import type { ResponseFactory } from '@chubbyts/chubbyts-http-types/dist/message-factory'; import type { FindModelById, RemoveModel } from '../repository.js'; import type { InputModelSchema } from '../model.js'; export declare const createDeleteHandler: <IMS extends InputModelSchema>(findModelById: FindModelById<IMS>, removeModel: RemoveModel<IMS>, responseFactory: ResponseFactory) => Handler;