-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.d.ts
80 lines (74 loc) · 1.86 KB
/
custom.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
interface gifShotConfig {
gifWidth?: number,
gifHeight?: number,
images?: Array<string>,
video?: null | Array<string>,
webcamVideoElement?: null,
keepCameraOn?: boolean,
cameraStream?: null,
filter?: string,
interval?: number,
offset?: null | number,
numFrames?: number,
frameDuration?: number,
text?: string,
fontWeight?: string,
fontSize?: string,
minFontSize?: string,
resizeFont?: boolean,
fontFamily?: string,
fontColor?: string,
textAlign?: string,
textBaseline?: string,
textXCoordinate?: null,
textYCoordinate?: null,
progressCallback?: (captureProgress: any) => any,
completeCallback?: () => void,
sampleInterval?: number,
numWorkers?: number,
saveRenderingContexts?: boolean,
savedRenderingContexts?: Array<any>,
showFrameText?: boolean,
crossOrigin?: string,
waterMark?: any,
waterMarkHeight?: number,
waterMarkWidth?: number,
waterMarkXCoordinate?: number,
waterMarkYCoordinate?: number,
}
interface gifShot {
createGIF( config: gifShotConfig, callback: (n: any) => any): void;
takeSnapShot( callback: (n: any) => any): void;
isExistingImagesGIFSupported(): boolean;
isExistingVideoGIFSupported(formats: Array<string>): boolean;
isWebCamGIFSupported(): boolean;
isSupported(): boolean;
stopVideoStreaming(): void;
}
declare module '*.svg' {
const content: any;
export default content;
}
declare module '*.png' {
const value: any;
export default value;
}
declare module '*.jpg' {
const value: any;
export default value;
}
declare module '*.jpeg' {
const value: any;
export default value;
}
declare module '*.eot';
declare module '*.ttf';
declare module '*.woff2';
declare module '*.woff';
declare module 'react-hammerjs';
declare module '@react-corekit/use-idle';
declare module 'react-country-flag';
declare module 'gifshot' {
const gifShot: gifShot;
export default gifShot;
}