Skip to main content

Function: resolveProps()

resolveProps<P, D>(definition, inputProps?): P

Defined in: src/serialization/parametrized.ts:266

Resolve the effective props for a definition: a clone of the defaults with the input props merged over them (input wins). Each input value is coerced to the type of its default; an uncoercible or unknown key falls back to the default. Reused by renderParametrized and propsFromUrl.

Type Parameters​

P​

P extends object

D​

D

Parameters​

definition​

ParametrizedSceneDefinition<P, D>

The parametrized scene definition.

inputProps?​

PropsRecord

Partial input props (unknown keys are ignored).

Returns​

P

The fully resolved props.