@@ -116,7 +116,7 @@ import {
116
116
LoggerInterface ,
117
117
canBlockDeinit ,
118
118
} from '@standardnotes/utils'
119
- import { UuidString , ApplicationEventPayload } from '../Types'
119
+ import { UuidString } from '../Types'
120
120
import { applicationEventForSyncEvent } from '@Lib/Application/Event'
121
121
import { BackupServiceInterface , FilesClientInterface } from '@standardnotes/files'
122
122
import { ComputePrivateUsername } from '@standardnotes/encryption'
@@ -273,12 +273,12 @@ export class SNApplication implements ApplicationInterface, AppGroupManagedAppli
273
273
} ) ,
274
274
)
275
275
276
- const syncEventCallback = async ( eventName : SyncEvent ) => {
276
+ const syncEventCallback = async ( eventName : SyncEvent , data ?: unknown ) => {
277
277
const appEvent = applicationEventForSyncEvent ( eventName )
278
278
if ( appEvent ) {
279
279
await encryptionService . onSyncEvent ( eventName )
280
280
281
- await this . notifyEvent ( appEvent )
281
+ await this . notifyEvent ( appEvent , data )
282
282
283
283
if ( appEvent === ApplicationEvent . CompletedFullSync ) {
284
284
if ( ! this . handledFullSyncStage ) {
@@ -529,7 +529,7 @@ export class SNApplication implements ApplicationInterface, AppGroupManagedAppli
529
529
return this . addEventObserver ( filteredCallback , event )
530
530
}
531
531
532
- private async notifyEvent ( event : ApplicationEvent , data ?: ApplicationEventPayload ) {
532
+ private async notifyEvent ( event : ApplicationEvent , data ?: unknown ) {
533
533
if ( event === ApplicationEvent . Started ) {
534
534
this . onStart ( )
535
535
} else if ( event === ApplicationEvent . Launched ) {
0 commit comments