Skip to content

Commit

Permalink
fix: use Record instead of Map in fleek http types
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf authored Jun 6, 2024
1 parent a51b52b commit d2036a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dts/lib.fleek.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ declare namespace Fleek {
type HttpRequest = {
method: HttpRequestMethod;
path: String;
headers?: Map<string, string>;
query?: Map<string, any>;
headers?: Record<string, string>;
query?: Record<string, any>;
body?: any;
};

/** Valid header formats for an HTTP response.
* @category Fleek Node API
*/
type HttpResponseHeaders =
| Map<string, string>
| Map<string, string[]>
| Record<string, string>
| Record<string, string[]>
| [string, string][]
| [string, string[]][];

Expand Down

0 comments on commit d2036a0

Please sign in to comment.