Skip to content

Commit

Permalink
Merge pull request #158 from goveo/development
Browse files Browse the repository at this point in the history
Export missing types from root
  • Loading branch information
goveo authored Feb 12, 2024
2 parents d9e8d21 + 59181de commit 6c5f736
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/FlagImage/FlagImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const getFlagCodepointByIso2 = (iso2: ParsedCountry['iso2']) => {
return [codepoints[iso2[0]], codepoints[iso2[1]]].join('-');
};

interface FlagImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
export interface FlagImageProps
extends React.ImgHTMLAttributes<HTMLImageElement> {
/**
* @description iso2 code of country flag
* @required
Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
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,
PhoneInputRefType,
} 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,
Expand Down

0 comments on commit 6c5f736

Please sign in to comment.