Skip to content

Commit 602c95d

Browse files
author
Damian Sznajder
committed
🏷️ Export OtpInputsRef type
1 parent 4637330 commit 602c95d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ const OtpInputs = forwardRef<OtpInputsRef, Props>(
271271
},
272272
);
273273

274+
export { OtpInputsRef };
274275
export default OtpInputs;
275276

276277
// @ts-ignore

src/types.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export type Actions = SetOtpTextForIndex | SetOtpCode | ClearOtp;
1717

1818
export type OtpInputsRef = {
1919
reset: () => void;
20+
focus: () => void;
2021
};
2122

2223
export type KeyEventType = {

0 commit comments

Comments
 (0)