-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
46 lines (37 loc) · 998 Bytes
/
types.d.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
43
44
45
46
import 'react';
// eslint-disable-line @typescript-eslint/no-unused-vars
declare module 'react' {
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
export interface IframeHTMLAttributes<T> {
enablejsapi?: '0' | '1';
autoplay?: '0' | '1';
}
}
interface MWConfig {
get: (key: string) => unknown;
}
interface MW {
config: MWConfig;
}
interface WindowWithMW extends Window {
mw: MW;
}
export interface YoutubeTakeoverResponse {
product: string;
id: string;
impression_per_session: number;
youtube_take_over: boolean;
takeover_video_id: string;
}
export interface YoutubeTakeOverDetails {
isYoutubeTakeover?: boolean;
youtubeVideoId?: string;
}
export interface PlayerInstance {
// To fill with needed player methods...
getMuted: () => boolean;
}
export interface YoutubeArticleVideoPlayerProps {
youtubeTakeoverDetails: YoutubeTakeOverDetails;
}
export type Player = (playerDivId: string, height: number, width: number, parent?: string[]) => PlayerInstance;