Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Type response body of messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Diane Huxley committed Nov 12, 2023
1 parent 879cf1e commit 276184b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/http-server/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Request, Response } from 'express'
import type { Close, MessageKindClass, MessageKindClasses, Offering, Order, OrderStatus, Quote, Rfq } from '@tbdex/protocol'
import type { ErrorDetail } from '@tbdex/http-client'

/**
* Union type for get requests
Expand Down Expand Up @@ -89,7 +90,7 @@ export type RequestContext = {
* Type alias for the request handler
* @beta
*/
export type RequestHandler = (request: Request, response: Response) => any
export type RequestHandler = (request: Request, response: Response<{ errors?: ErrorDetail[], data?: any }>) => any

/**
* PFI Offerings API
Expand Down

0 comments on commit 276184b

Please sign in to comment.