forked from HatScripts/circle-flags
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.d.ts
45 lines (40 loc) · 1.01 KB
/
index.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
import { DetailedHTMLProps, ImgHTMLAttributes } from 'react'
interface CircleFlagProps extends DetailedHTMLProps<
ImgHTMLAttributes<HTMLImageElement>,
HTMLImageElement
> {
/**
* Country code of flag.
*/
countryCode: string
/**
* Custom CDN URL to use.
*/
cdnUrl?: string
}
interface CircleFlagLanguageProps extends DetailedHTMLProps<
ImgHTMLAttributes<HTMLImageElement>,
HTMLImageElement
> {
/**
* Language code of flag.
*/
languageCode: string
/**
* Custom CDN URL to use.
*/
cdnUrl?: string
}
/**
*
* Demos:
* - https://on-the-edge-cloud.github.io/react-circle-flags/gallery
*
* Docs:
* - https://on-the-edge-cloud.github.io/react-circle-flags/
*/
declare function CircleFlag(props: CircleFlagProps): JSX.Element
declare function CircleFlagLanguage(props: CircleFlagLanguageProps): JSX.Element
declare var countries: Record<string, boolean>
declare var languages: Record<string, boolean>
export { CircleFlag, CircleFlagLanguage, CircleFlagProps, countries, languages }