ValidationError> => { const tagId = TagId(input.id) const groupId = RestaurantGroupId(input.groupId) const label = TagLabel(input.label) const icon = input.icon && input.iconType ? TagIcon({ symbol: input.icon, type: input.iconType, color: input.color, }) : ok(NoIcon()) const sortOrder = FractionalIndex(input.sortOrder) const values = Result.combine(tuple(tagId, groupId, label, icon, sortOrder)) return values.map(([id, groupId, label, icon, sortOrder]) => ({ ...input, id, groupId, label, icon, sortOrder, })) } ͕͍͍ͩͨ3FTVMUʹೖ͍ͬͯΔ ͨΊɺෳ3FTVMU͕͋Δͱ߹͠ ͯϑϥοτʹ͢Δඞཁ͕͋Γ໘ ͳ࡞ۀʹͳͬͯ͘Δ ݎ࿚Ͱ͋Δ