Skip to content

Commit

Permalink
fix(types): expose HTTPResponseRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 17, 2024
1 parent a9eceae commit 1ceff8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lightweight/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ type HTTPResponse = {

type HTTPResponseWithBody = HTTPResponse & { body: MqlPayload };

type HTTPResponseRaw = HTTPResponse & { body: ArrayBuffer };
export type HTTPResponseRaw = HTTPResponse & { body: ArrayBuffer };

export type MqlResponse = MqlPayload & { response: HTTPResponseWithBody };

Expand Down
4 changes: 2 additions & 2 deletions src/node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ export { MicrolinkError, MqlError, MqlPayload } from '../lightweight'

import { Response, Options as GotOpts } from 'got/dist/source/core'

type HTTPResponse = Response<Buffer>
export type HTTPResponse = Response<Buffer>

type HTTPResponseWithBody = HTTPResponse & { body: MqlPayload };

type HTTPResponseRaw = HTTPResponse & { body: Buffer };

type MqlResponse = MqlPayload & { response: HTTPResponseWithBody };
export type MqlResponse = MqlPayload & { response: HTTPResponseWithBody };

interface Mql {
(url: string, opts?: MqlOptions & { stream: string }, gotOpts?: GotOpts): Promise<HTTPResponse>;
Expand Down

0 comments on commit 1ceff8f

Please sign in to comment.