I am in the process of transitioning my es6 code to typescript. I am looking to split a specific argument into two parts. Would anyone be able to provide me with the typescript equivalent, please?
const convertToTypeScript = ({mainProp:A, ...otherProps}) => {
console.log(A, otherProps);
}