Tengo el siguiente código:
const renderRightActions = (_, dragX) => { const trans = dragX.interpolate({ inputRange: [0, 50, 100, 101], outputRange: [60, 110, 110, 110], }); return ( <Animated.View style={{ transform: [{ translateX: trans }] }}> <RectButton onPress={handleOnDeleteButtonPress} style={[ styles.trashIconContainer, { backgroundColor: colors.primary, }, ]} > <Icon name="trash-can" type="material-community" size={26} color={colors.white} /> </RectButton> </Animated.View> ); };Como puede ver, estoy ignorando el primer argumento del método que usa el carácter de subrayado.
¿Cómo puedo documentarlo en JSDoc? He intentado esto:
/** * Renders the right actions for the `Swipeable`. * * @param {any} _ - Ignored parameter. * @param {Animated.AnimatedInterpolation} dragX - Drag X value. * @returns {React.ReactNode} The `Swipeable` right action. */Pero no estoy seguro de si hay alguna forma estandarizada de manejar esta situación. ¿Algunas ideas?