Skip to content

Commit

Permalink
fix: support for null type
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael committed Oct 21, 2022
1 parent 6524e0f commit efe5d44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import type { CacheOptions } from "../ttl-cache/ttl-cache";
export type URIOptions = any;

export type URLProtocol = "http" | "https";
export type SearchParams = URLSearchParams | Record<string, string> | string;
export type SearchParams =
| URLSearchParams
| Record<string, string>
| string
| null;
export type UrbexURL = BaseURIComponent | RequestUrlPath;

export type DispatchedResponse = Promise<ResponseConfig>;
Expand Down

0 comments on commit efe5d44

Please sign in to comment.