@microlink/mql 0.13.0 → 0.13.2

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.
@@ -85,7 +85,7 @@ type MicrolinkApiOptions = {
85
85
  scripts?: string | string[];
86
86
  scroll?: string;
87
87
  staleTtl?: string | number;
88
- stream?: boolean;
88
+ stream?: string;
89
89
  styles?: string | string[];
90
90
  timeout?: number;
91
91
  ttl?: string | number;
@@ -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: true }, 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;