chore: enable noUncheckedIndexedAccess, better type check (#2608)
This commit is contained in:
@@ -31,7 +31,7 @@ const InputOTPSlot = React.forwardRef<
|
||||
React.ComponentPropsWithoutRef<"div"> & { index: number }
|
||||
>(({ index, className, ...props }, ref) => {
|
||||
const inputOTPContext = React.useContext(OTPInputContext)
|
||||
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]
|
||||
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]!
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user