Skip to content

Commit 78d21c0

Browse files
committed
chore: remove optional flag
1 parent 961c961 commit 78d21c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/common/src/client/sync/stream/AbstractStreamingSyncImplementation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ export interface PowerSyncConnectionRequiredOptions {
7575
* the PowerSync backend instance.
7676
* Defaults to a HTTP streaming connection.
7777
*/
78-
connectionMethod?: SyncStreamConnectionMethod;
78+
connectionMethod: SyncStreamConnectionMethod;
7979

8080
/**
8181
* These parameters are passed to the sync rules, and will be available under the`user_parameters` object.
8282
*/
83-
params?: Record<string, StreamingSyncRequestParameterType>;
83+
params: Record<string, StreamingSyncRequestParameterType>;
8484
}
8585

8686
export interface PowerSyncConnectionOptionalOptions {
@@ -126,7 +126,7 @@ export const DEFAULT_STREAMING_SYNC_OPTIONS = {
126126
crudUploadThrottleMs: DEFAULT_CRUD_UPLOAD_THROTTLE_MS
127127
};
128128

129-
export const DEFAULT_STREAM_CONNECTION_OPTIONS: Required<Omit<PowerSyncConnectionOptions, 'retryDelayMs' | 'crudUploadThrottleMs'>> = {
129+
export const DEFAULT_STREAM_CONNECTION_OPTIONS: PowerSyncConnectionRequiredOptions = {
130130
connectionMethod: SyncStreamConnectionMethod.WEB_SOCKET,
131131
params: {}
132132
};
@@ -444,7 +444,7 @@ The next upload iteration will be delayed.`);
444444
type: LockType.SYNC,
445445
signal,
446446
callback: async () => {
447-
const resolvedOptions: Required<PowerSyncConnectionRequiredOptions> = {
447+
const resolvedOptions: PowerSyncConnectionRequiredOptions = {
448448
...DEFAULT_STREAM_CONNECTION_OPTIONS,
449449
...(options ?? {})
450450
};

0 commit comments

Comments
 (0)