Skip to content

Commit 1b7f175

Browse files
committed
chore: fix schema types
1 parent ee288fd commit 1b7f175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class MinimalClient {
7878
fetchOpts = {},
7979
headers = {},
8080
}: VOTOpts = {}) {
81-
const schema = this.hostSchemaRe.exec(host)?.[1] as URLSchema | undefined;
81+
const schema = this.hostSchemaRe.exec(host)?.[1] as URLSchema | null;
8282
this.host = schema ? host.replace(`${schema}://`, "") : host;
8383
this.schema = schema ?? "https";
8484
this.fetch = fetchFn;

0 commit comments

Comments
 (0)