File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/common/src/client/sync/stream Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
8686export 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 } ;
You can’t perform that action at this time.
0 commit comments