Skip to content

Commit

Permalink
fix: stream type
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 17, 2024
1 parent 4c10188 commit b8a5f1b
Show file tree
Hide file tree
Showing 6 changed files with 729 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lightweight/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ type MicrolinkApiOptions = {
scripts?: string | string[];
scroll?: string;
staleTtl?: string | number;
stream?: boolean;
stream?: string;
styles?: string | string[];
timeout?: number;
ttl?: string | number;
Expand Down Expand Up @@ -174,7 +174,7 @@ export type MqlError = {
export type MqlOptions = MqlClientOptions & MicrolinkApiOptions;

interface mql {
(url: string, opts?: MqlOptions & { stream: true }, gotOpts?: object): Promise<Response>;
(url: string, opts?: MqlOptions & { stream: string }, gotOpts?: object): Promise<Response>;
(url: string, opts?: MqlOptions, gotOpts?: object): Promise<MqlResponse>;
arrayBuffer: (url: string, opts?: MqlOptions, gotOpts?: object) => Promise<HTTPResponseRaw>;
extend: (gotOpts?: object) => mql;
Expand Down
Loading

0 comments on commit b8a5f1b

Please sign in to comment.