diff --git a/src/components/FlagImage/FlagImage.tsx b/src/components/FlagImage/FlagImage.tsx index 290a1b1..24803f7 100644 --- a/src/components/FlagImage/FlagImage.tsx +++ b/src/components/FlagImage/FlagImage.tsx @@ -35,7 +35,8 @@ const getFlagCodepointByIso2 = (iso2: ParsedCountry['iso2']) => { return [codepoints[iso2[0]], codepoints[iso2[1]]].join('-'); }; -interface FlagImageProps extends React.ImgHTMLAttributes { +export interface FlagImageProps + extends React.ImgHTMLAttributes { /** * @description iso2 code of country flag * @required diff --git a/src/index.ts b/src/index.ts index 9160d19..fb8b6f1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,10 @@ +export type { CountrySelectorProps } from './components/CountrySelector/CountrySelector'; export { CountrySelector } from './components/CountrySelector/CountrySelector'; +export type { CountrySelectorDropdownProps } from './components/CountrySelector/CountrySelectorDropdown'; export { CountrySelectorDropdown } from './components/CountrySelector/CountrySelectorDropdown'; +export type { DialCodePreviewProps } from './components/DialCodePreview/DialCodePreview'; export { DialCodePreview } from './components/DialCodePreview/DialCodePreview'; +export type { FlagImageProps } from './components/FlagImage/FlagImage'; export { FlagImage } from './components/FlagImage/FlagImage'; export type { PhoneInputProps, @@ -8,8 +12,9 @@ export type { } from './components/PhoneInput/PhoneInput'; export { PhoneInput } from './components/PhoneInput/PhoneInput'; export { defaultCountries } from './data/countryData'; +export type { UsePhoneInputConfig } from './hooks/usePhoneInput'; export { usePhoneInput } from './hooks/usePhoneInput'; -export type { CountryData, CountryIso2 } from './types'; +export * from './types'; export { buildCountryData, getActiveFormattingMask,