diff --git a/types/inboxsdk/inboxsdk-tests.ts b/types/inboxsdk/inboxsdk-tests.ts index a763674c73..4f51bae92c 100644 --- a/types/inboxsdk/inboxsdk-tests.ts +++ b/types/inboxsdk/inboxsdk-tests.ts @@ -358,7 +358,7 @@ InboxSDK.load(1, '1234').then((sdk: InboxSDK.InboxSDKInstance) => { const contacts: InboxSDK.Common.Contact[] = threadRowView.getContacts(); - threadRowView.on('destroyed', () => console.log()); + threadRowView.on('destroy', () => console.log()); const destroyed: boolean = threadRowView.destroyed; }); @@ -704,7 +704,7 @@ InboxSDK.load(1, '1234').then((sdk: InboxSDK.InboxSDKInstance) => { }); modalView.close(); - modalView.on('destroyed', () => { + modalView.on('destroy', () => { }); const destroyed: boolean = modalView.destroyed; @@ -728,7 +728,7 @@ InboxSDK.load(1, '1234').then((sdk: InboxSDK.InboxSDKInstance) => { const minimized: boolean = moleView.getMinimized(); moleView.setMinimized(true); moleView.setTitle('title'); - moleView.on('destroyed', () => { + moleView.on('destroy', () => { }); moleView.on('minimize', () => { }); @@ -745,7 +745,7 @@ InboxSDK.load(1, '1234').then((sdk: InboxSDK.InboxSDKInstance) => { drawerView.close(); drawerView.disassociateComposeView(); const destroyed1: boolean = drawerView.destroyed; - drawerView.on('destroyed', () => { + drawerView.on('destroy', () => { }); drawerView.on('slideAnimationDone', () => { }); diff --git a/types/inboxsdk/index.d.ts b/types/inboxsdk/index.d.ts index 66b696e05a..4ced3ce6bd 100644 --- a/types/inboxsdk/index.d.ts +++ b/types/inboxsdk/index.d.ts @@ -306,7 +306,7 @@ declare namespace InboxSDK { getContacts(): Common.Contact[]; - on(name: 'destroyed', cb: () => void): void; + on(name: 'destroy', cb: () => void): void; destroyed: boolean; } @@ -909,7 +909,7 @@ declare namespace InboxSDK { interface ModalView { close(): void; - on(name: 'destroyed', cb: () => void): void; + on(name: 'destroy', cb: () => void): void; destroyed: boolean; } @@ -923,7 +923,7 @@ declare namespace InboxSDK { getMinimized(): boolean; - on(name: 'destroyed' | 'minimize' | 'restore', cb: () => void): void; + on(name: 'destroy' | 'minimize' | 'restore', cb: () => void): void; destroyed: boolean; } @@ -935,7 +935,7 @@ declare namespace InboxSDK { disassociateComposeView(): void; - on(name: 'destroyed' | 'slideAnimationDone' | 'closing', cb: () => void): void; + on(name: 'destroy' | 'slideAnimationDone' | 'closing', cb: () => void): void; destroyed: boolean; }