Turns out using an intersection type solved the problem: function initSearch( e: | (React.MouseEvent<HTMLButtonElement> & { type: 'click' }) /*?
確定! 回上一頁