結果 : typescript use values of object as type