-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypings.d.ts
123 lines (98 loc) · 2.44 KB
/
typings.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
declare module 'is-reachable' {
function isReachable(url: string): Promise<boolean>
export = isReachable
}
declare module '*.graphql' {
import { DocumentNode, Location, DefinitionNode } from 'graphql'
export const kind: 'Document'
export const loc: Location | undefined
export const definitions: Array<DefinitionNode>
}
declare module 'emojione/package.json' {
export const version: string
}
declare namespace NodeJS {
export interface Global {
jQuery: any
emojione: any
emojioneVersion: string
Perf: any
}
}
declare module 'react-image-gallery' {
import * as React from 'react'
export type ClickHandler = React.MouseEventHandler<HTMLButtonElement>
type CustomRenderer = (
onClick: ClickHandler,
disabled: boolean
) => JSX.Element
export interface Item {
original: string
}
interface Props {
items: Item[]
showPlayButton: boolean
showBullets: boolean
showThumbnails: boolean
showFullscreenButton: boolean
infinite: boolean
renderLeftNav: CustomRenderer
renderRightNav: CustomRenderer
}
class ImageGallery extends React.Component<Props> {}
export default ImageGallery
}
declare module 'material-ui/TextField/TextFieldHint' {
import * as React from 'react'
import { MuiTheme } from 'material-ui/styles'
interface Props {
muiTheme: MuiTheme
show: boolean
text: string
}
class TextFieldHint extends React.Component<Props> {}
export default TextFieldHint
}
declare module 'material-ui/TextField/TextFieldUnderline' {
import * as React from 'react'
import { MuiTheme } from 'material-ui/styles'
interface Props {
muiTheme: MuiTheme
disabled: boolean
focus: boolean
}
class TextFieldUnderline extends React.Component<Props> {}
export default TextFieldUnderline
}
declare module 'react-content-loader' {
import * as React from 'react'
interface ILoaderProps {
style?: Object
type?: string
speed?: number
width?: number
height?: number
primaryColor?: string
secondaryColor?: string
}
export default class ContentLoader extends React.Component<ILoaderProps> {}
interface ICircleProps {
x: number
y: number
radius: number
}
export class Circle extends React.Component<ICircleProps> {}
interface IRectProps extends ICircleProps {
width: number
height: number
}
export class Rect extends React.Component<IRectProps> {}
}
declare module 'electron-is-dev' {
const isDev: boolean
export default isDev
}
declare module 'app-root-path' {
const path: string
export = { path }
}