-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
42 lines (38 loc) · 932 Bytes
/
types.ts
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
import type { ElementScriptTrigger } from "#nuxt-scripts";
declare global {
interface Window {
twttr: {
ready: () => Promise<void>;
widgets: {
createTweet: (id: string, el: Element | HTMLElement | null, options?: XpostOptions) => void;
load: (el: Element | HTMLElement | null) => void;
};
};
fbAsyncInit: () => void;
FB: {
init: (options: Record<string, unknown>) => void;
};
}
}
export interface FBPostsProps {
link: string
trigger?: ElementScriptTrigger
dataWidth?: number
caption?: string
title?: string
}
export interface ScriptXpostProps {
link?: string
trigger?: ElementScriptTrigger
id?: string
options?: XpostOptions
}
export interface XpostOptions {
cards?: 'hidden' | 'visible'
conversation?: 'none' | 'all'
theme?: 'dark' | 'light'
width?: 'auto' | number
align?: 'left' | 'rigth' | 'center'
lang?: string
dnt?: boolean
}