結果 : typescript check type of variable custom type