diff --git a/react/build/IntlTelInput.d.ts b/react/build/IntlTelInput.d.ts index 771d5eb4b..18ee130f9 100644 --- a/react/build/IntlTelInput.d.ts +++ b/react/build/IntlTelInput.d.ts @@ -989,11 +989,11 @@ declare module "intl-tel-input/react" { initOptions?: SomeOptions; inputProps?: object; }; - type ItiRef = { + export type IntlTelInputRef = { getInstance: () => Iti | null; getInput: () => HTMLInputElement | null; }; - const IntlTelInput: React.ForwardRefExoticComponent>; + const IntlTelInput: React.ForwardRefExoticComponent>; export default IntlTelInput; } declare module "intl-tel-input/utils-compiled" { @@ -1019,10 +1019,10 @@ declare module "intl-tel-input/reactWithUtils" { initOptions?: SomeOptions; inputProps?: object; }; - type ItiRef = { + export type IntlTelInputRef = { getInstance: () => Iti | null; getInput: () => HTMLInputElement | null; }; - const IntlTelInput: React.ForwardRefExoticComponent>; + const IntlTelInput: React.ForwardRefExoticComponent>; export default IntlTelInput; } diff --git a/react/src/intl-tel-input/react.tsx b/react/src/intl-tel-input/react.tsx index 65df93ccb..50a7d99e4 100644 --- a/react/src/intl-tel-input/react.tsx +++ b/react/src/intl-tel-input/react.tsx @@ -17,7 +17,7 @@ type ItiProps = { inputProps?: object; }; -type ItiRef = { +export type IntlTelInputRef = { getInstance: () => Iti | null; getInput: () => HTMLInputElement | null; } @@ -31,7 +31,7 @@ const IntlTelInput = forwardRef(function IntlTelInput({ usePreciseValidation = false, initOptions = {}, inputProps = {}, -}: ItiProps, ref: React.ForwardedRef) { +}: ItiProps, ref: React.ForwardedRef) { const inputRef = useRef(null); const itiRef = useRef(null); diff --git a/react/src/intl-tel-input/reactWithUtils.tsx b/react/src/intl-tel-input/reactWithUtils.tsx index 9b4fd2a39..09f945dc1 100644 --- a/react/src/intl-tel-input/reactWithUtils.tsx +++ b/react/src/intl-tel-input/reactWithUtils.tsx @@ -18,7 +18,7 @@ type ItiProps = { inputProps?: object; }; -type ItiRef = { +export type IntlTelInputRef = { getInstance: () => Iti | null; getInput: () => HTMLInputElement | null; } @@ -32,7 +32,7 @@ const IntlTelInput = forwardRef(function IntlTelInput({ usePreciseValidation = false, initOptions = {}, inputProps = {}, -}: ItiProps, ref: React.ForwardedRef) { +}: ItiProps, ref: React.ForwardedRef) { const inputRef = useRef(null); const itiRef = useRef(null);