effect-motion
API Referenceeffect-motionNamespacesRunnerType aliases

InstantiateProps

type InstantiateProps<Tag> = Omit<MakeInput<Tag>, "children"> & Tag extends ContainerTag ? {

Type Alias: InstantiateProps<Tag>

type InstantiateProps<Tag> = Omit<MakeInput<Tag>, "children"> & Tag extends ContainerTag ? {
  children?: ReadonlyArray<Child>;
} : Record<never, never>;

Defined in: packages/motion/src/Runner.ts:132

The input instantiate accepts: the entity's own make-input, except that a children field (stored as Array<string> of ids) is authored as the polymorphic Child list — the runner normalizes it to ids in list order.

Type Parameters

Type Parameter
Tag extends EntityTag

On this page