mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-25 10:30:25 +00:00
Inboxsdk fix destroy event (#27237)
* inboxsdk - fix destroyed event => destroy * inboxsdk - fix destroyed event => destroy
This commit is contained in:
committed by
Ryan Cavanaugh
parent
ee49a4763b
commit
dcd53299bf
@@ -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', () => {
|
||||
});
|
||||
|
||||
Vendored
+4
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user