-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.d.ts
More file actions
59 lines (50 loc) · 1.07 KB
/
index.d.ts
File metadata and controls
59 lines (50 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
declare module 'share-url' {
export type FacebookOptions = {
u: string
}
export type TwitterOptions = {
text?: string
in_reply_to?: string
url?: string
hashtags?: string
via?: string
related?: string
}
export type PinterestOptions = {
url: string
media?: string
description?: string
}
export type RedditOptions = {
url: string
title?: string
text?: string
}
export type LinkedinOptions = {
url: string
}
export type WhatsappOptions = {
text: string
}
export type TelegramOptions = {
url: string
text?: string
}
export type EmailOptions = {
to: string
subject?: string
cc?: string
bcc?: string
body?: string
}
interface IShareUrl {
facebook(options: FacebookOptions): string
twitter(options: TwitterOptions): string
pinterest(options: PinterestOptions): string
reddit(options: RedditOptions): string
linkedin(options: LinkedinOptions): string
email(options: EmailOptions): string
}
const ShareUrl: IShareUrl
export default ShareUrl
}