@microlink/mql 0.13.1 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,7 +154,7 @@ type HTTPResponse = {
154
154
 
155
155
  type HTTPResponseWithBody = HTTPResponse & { body: MqlPayload };
156
156
 
157
- type HTTPResponseRaw = HTTPResponse & { body: ArrayBuffer };
157
+ export type HTTPResponseRaw = HTTPResponse & { body: ArrayBuffer };
158
158
 
159
159
  export type MqlResponse = MqlPayload & { response: HTTPResponseWithBody };
160
160
 
@@ -173,12 +173,18 @@ export type MqlError = {
173
173
 
174
174
  export type MqlOptions = MqlClientOptions & MicrolinkApiOptions;
175
175
 
176
+ export const MicrolinkError: new (props: object) => MqlError;
177
+
178
+ export const version: string;
179
+
176
180
  interface mql {
177
- (url: string, opts?: MqlOptions & { stream: string }, gotOpts?: object): Promise<Response>;
181
+ (url: string, opts?: MqlOptions & { stream: string }, gotOpts?: object): Promise<HTTPResponseRaw>;
178
182
  (url: string, opts?: MqlOptions, gotOpts?: object): Promise<MqlResponse>;
179
183
  arrayBuffer: (url: string, opts?: MqlOptions, gotOpts?: object) => Promise<HTTPResponseRaw>;
180
184
  extend: (gotOpts?: object) => mql;
181
185
  stream: (input: RequestInfo, init?: RequestInit) => ReadableStream;
186
+ MicrolinkError: new (props: object) => MqlError;
187
+ version: string;
182
188
  }
183
189
 
184
190
  declare const mql: mql;