結果 : typescript extend type with method