From 59181dee932e2b12ec2fa8d9067b689c755a18c7 Mon Sep 17 00:00:00 2001 From: Yurii Brusentsov Date: Mon, 12 Feb 2024 23:39:11 +0200 Subject: [PATCH] fix(types): export missing types --- src/components/FlagImage/FlagImage.tsx | 3 ++- src/index.ts | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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,