generated from kalidao/kplate-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
/
global.d.ts
34 lines (32 loc) · 877 Bytes
/
global.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
declare module 'react-step-progress-bar' {
import React from 'react'
interface ProgressBarProps {
percent: number
stepPositions?: Array<number>
unfilledBackground?: string
filledBackground?: string
width?: number
height?: number
hasStepZero?: boolean
text?: string
children?: React.ReactNode
}
interface StepProps {
children: (props: {
accomplished: boolean
transitionState: string
index: number
position: number
}) => React.ReactNode
transition?: 'scale' | 'rotate' | 'skew'
transitionDuration?: number
}
class ProgressBar extends React.Component<ProgressBarProps, any> {}
class Step extends React.Component<StepProps, any> {}
}
declare module 'colorthief' {
class ColorThief {
getColor(sourceImage: HTMLImageElement): [number, number, number]
}
export default ColorThief
}