такой функции:
public beforeMaskedValueChange = (newState, oldState, userInput) => {
const { value } = newState;
const selection = newState.selection;
return {
value,
selection
};
};
В дефинишенах такое вот:
interface Props extends React.InputHTMLAttributes<HTMLInputElement> {
...
beforeMaskedValueChange?(
newState: InputState,
oldState: InputState,
userInput: string,
maskOptions: MaskOptions,
): InputState;
}
export class ReactInputMask extends React.Component<Props> {
}
export default ReactInputMask;
public beforeMaskedValueChange = (newState: InputState, oldState: InputState, userInput: string): => { const { value } = newState; const selection = newState.selection; return { value, selection }; };
Так указаны же
Обсуждают сегодня