結果 : typescript check if function is constructor