def custom_result
import bendvy-ecs-core@0.1.0.3/decode_construction.bend as DecodeConstructionimport Base
import bundle_construction.bend as Build
37def custom_result(~I:Type,~P:Type,~Custom:Data,result:Build.Construction<I,P,Custom>) -> Build.Construction<I,P,Error<Custom>>:
38 match result:
39 case Build.Invalid{owner,error}:Build.Invalid{owner,Constructor{error}}
40 case Build.Constructed{owner,undo}:Build.Constructed{owner,undo}