Skip to content

Commit 82026df

Browse files
authored
Merge pull request #156 from NativeScript/gogoout
chore: remove duplicate message template type definition
2 parents baff268 + 0e88b24 commit 82026df

File tree

2 files changed

+41
-10
lines changed

2 files changed

+41
-10
lines changed

src/share-manager.common.d.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
export interface ShareAdditionContent {
2+
hashtag?: string;
3+
}
4+
5+
export interface MessageActionButton {
6+
title: string;
7+
url: string;
8+
}
9+
10+
export interface MessageGenericTemplateElement {
11+
title: string;
12+
subtitle?: string;
13+
imageUrl: string;
14+
button?: MessageActionButton;
15+
defaultAction?: MessageActionButton;
16+
}
17+
18+
export interface MessageGenericTemplateContent {
19+
element: MessageGenericTemplateElement;
20+
imageAspectRatio?: MessageGenericTemplateImageAspectRatio;
21+
pageID?: string;
22+
isSharable?: boolean;
23+
}
24+
25+
export enum MessageGenericTemplateImageAspectRatio {
26+
Horizontal = 0,
27+
Square = 1
28+
}
29+
30+
export enum MessageMediaTemplateMediaType {
31+
Image = 0,
32+
Video = 1
33+
}
34+
35+
export interface MessageMediaTemplateContent {
36+
mediaUrl?: string;
37+
attachmentID?: string;
38+
mediaType: MessageMediaTemplateMediaType;
39+
pageID: string;
40+
button?: MessageActionButton;
41+
}

src/share-manager.d.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ import {
77

88
export * from './share-manager.common';
99

10-
export declare enum MessageGenericTemplateImageAspectRatio {
11-
Horizontal = 0,
12-
Square = 1
13-
}
14-
15-
export declare enum MessageMediaTemplateMediaType {
16-
Image = 0,
17-
Video = 1
18-
}
19-
2010
/**
2111
* When people share links from your app to Facebook it includes a contentURL with the link to be shared.
2212
* @param {string} link Link to be shared.

0 commit comments

Comments
 (0)