Skip to content

Commit

Permalink
update index types
Browse files Browse the repository at this point in the history
  • Loading branch information
abeljimo committed Feb 20, 2024
1 parent 51b379e commit 8242551
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions apps/stripe/generated/@types/@uesio/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,27 @@ interface UserApi {
getUniqueKey: () => string
}

interface BotHttpRequest<Request> {
interface BotHttpRequest<
RequestBody = string | Record<string, unknown> | unknown[],
> {
url: string
method: string
headers?: Record<string, string>
body?: Request
body?: RequestBody
}
interface BotHttpResponse<Response> {
interface BotHttpResponse<
ResponseBody = string | Record<string, unknown> | null,
> {
code: number
status: string
headers: Record<string, string>
body: Response
body: ResponseBody
}

interface HttpApi {
request: <Request, Response>(options: BotHttpRequest<Request>) => BotHttpResponse<Response>
request: <RequestBody, ResponseBody>(
options: BotHttpRequest<RequestBody>
) => BotHttpResponse<ResponseBody>
}

interface SaveOptionsApi {
Expand Down

0 comments on commit 8242551

Please sign in to comment.