結果 : typescript check if variable is type of interface