Skip to content

Commit

Permalink
fix: export ref type
Browse files Browse the repository at this point in the history
  • Loading branch information
ybrusentsov committed Jan 24, 2024
1 parent 83e4bb8 commit 13fd47d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/docs/docs/02-Usage/01-PhoneInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ const PhoneWithRef = () => {
If you use typescript you should use `PhoneInputRefType` for as ref type:

```tsx
import { PhoneInputRefType } from 'react-international-phone';
// ...
const ref = useRef<PhoneInputRefType>(null);
```

Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ export { CountrySelector } from './components/CountrySelector/CountrySelector';
export { CountrySelectorDropdown } from './components/CountrySelector/CountrySelectorDropdown';
export { DialCodePreview } from './components/DialCodePreview/DialCodePreview';
export { FlagImage } from './components/FlagImage/FlagImage';
export type { PhoneInputProps } from './components/PhoneInput/PhoneInput';
export type {
PhoneInputProps,
PhoneInputRefType,
} from './components/PhoneInput/PhoneInput';
export { PhoneInput } from './components/PhoneInput/PhoneInput';
export { defaultCountries } from './data/countryData';
export { usePhoneInput } from './hooks/usePhoneInput';
Expand Down

2 comments on commit 13fd47d

@vercel
Copy link

@vercel vercel bot commented on 13fd47d Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 13fd47d Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.