forked from cultureamp/kaizen-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
41 lines (38 loc) · 918 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
declare module "*.css" {
const classes: { [key: string]: string }
export default classes
}
declare module "*.scss" {
const classes: { [key: string]: string }
export default classes
}
declare module "*.icon.svg" {
const content: {
id: string
viewBox: string
}
export default content
}
declare module "!!raw-loader!*" {
const content: string
export default content
}
declare module "react-map-interaction" {
type InteractionState = {
scale: number
translation: { x: number; y: number }
}
type Props = {
showControls?: boolean
minScale?: number
maxScale?: number
value?: InteractionState
onChange?: (state: InteractionState) => void
}
export const MapInteractionCSS: import("react").ComponentType<Props>
export const MapInteraction: import("react").ComponentType<
Props & {
children: (params: InteractionState) => React.ReactNode
}
>
}