Skip to content

Commit

Permalink
fix(client): wrong types for connect function
Browse files Browse the repository at this point in the history
type was missing the function argument
  • Loading branch information
TimoBechtel committed Jul 13, 2023
1 parent 863fee5 commit 85e3910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
} from './socket-implementation/websocketClient';

export type SocketDBClientAPI<Schema extends SchemaDefinition = any> = {
connect: () => void;
connect: (url?: string) => void;
disconnect: () => void;
intercept: <Hook extends keyof ClientHooks>(
hook: Hook,
Expand Down Expand Up @@ -397,7 +397,7 @@ export function SocketDBClient<Schema extends RootSchemaDefinition = any>({
disconnect() {
connection.close();
},
connect(url?: string) {
connect(url) {
url =
url ||
(typeof window !== 'undefined'
Expand Down

0 comments on commit 85e3910

Please sign in to comment.