Skip to content
Shapemetry

@huukhanhnguyen/model / core/modelUpdate

core/modelUpdate

carryParameterValues()

carryParameterValues<T>(next, prev): T

Merge the source's NEW doc/component with the consumer's PREVIOUS one: every parameter whose key exists in both with the SAME method keeps the previous (locally edited) args/animation; everything else — new parameters, operations/scene, and every other field — comes from next verbatim. Returns a fresh object; neither input is mutated.

Type Parameters

T

T extends ParameterDoc

Parameters

next

T

prev

ParameterDoc | null | undefined

Returns

T

Last updated: 📖 1 min readEdit on GitHub