Skip to content

Commit 203662f

Browse files
Better export import
1 parent 0baa7c1 commit 203662f

File tree

3 files changed

+47
-8
lines changed

3 files changed

+47
-8
lines changed

InAppClasses.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class IterableEdgeInsets {
4343
}
4444
}
4545

46-
interface IterableInAppContent {
46+
export interface IterableInAppContent {
4747
type: IterableInAppContentType
4848
}
4949

@@ -154,4 +154,12 @@ class IterableInAppMessage {
154154
}
155155
}
156156

157-
export { IterableInAppMessage }
157+
export {
158+
IterableInAppTriggerType,
159+
IterableInAppTrigger,
160+
IterableInAppContentType,
161+
IterableEdgeInsets,
162+
IterableHtmlInAppContent,
163+
IterableInboxMetadata,
164+
IterableInAppMessage,
165+
}

index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ export class IterableInAppMessage {
150150
customPayload: any | undefined,
151151
read: Boolean)
152152

153-
isSilentInbox(): Boolean {
154-
return this.saveToInbox && this.trigger.type == IterableInAppTriggerType.never
155-
}
153+
isSilentInbox(): Boolean
156154

157155
static fromDict(dict: any): IterableInAppMessage
158156
}

index.js

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,40 @@
66
* @module react-native-iterable-sdk
77
*/
88

9-
import { Iterable, IterableConfig, PushServicePlatform, IterableAction, IterableActionContext, IterableAttributionInfo, IterableCommerceItem } from './Iterable';
10-
import { IterableInAppMessage } from './InAppClasses'
9+
import {
10+
Iterable,
11+
IterableConfig,
12+
PushServicePlatform,
13+
IterableAction,
14+
IterableActionContext,
15+
IterableAttributionInfo,
16+
IterableCommerceItem
17+
} from './Iterable';
18+
import {
19+
IterableInAppContent,
20+
IterableInAppTriggerType,
21+
IterableInAppTrigger,
22+
IterableInAppContentType,
23+
IterableEdgeInsets,
24+
IterableHtmlInAppContent,
25+
IterableInboxMetadata,
26+
IterableInAppMessage,
27+
} from './InAppClasses';
1128

12-
export { Iterable, IterableConfig, PushServicePlatform, IterableAction, IterableActionContext, IterableAttributionInfo, IterableCommerceItem, IterableInAppMessage };
29+
export {
30+
Iterable,
31+
IterableConfig,
32+
PushServicePlatform,
33+
IterableAction,
34+
IterableActionContext,
35+
IterableAttributionInfo,
36+
IterableCommerceItem,
37+
IterableInAppContent,
38+
IterableInAppTriggerType,
39+
IterableInAppTrigger,
40+
IterableInAppContentType,
41+
IterableEdgeInsets,
42+
IterableHtmlInAppContent,
43+
IterableInboxMetadata,
44+
IterableInAppMessage,
45+
};

0 commit comments

Comments
 (0)