Effects
type Effects<Eff> = Iterable<Eff> & {
Type Alias: Effects<Eff>
type Effects<Eff> = Iterable<Eff> & {
~effect/Effect?: never;
};Defined in: packages/motion/src/Scene.ts:1351
The list argument of all, chain and stagger.
Type Declaration
~effect/Effect?
readonly optional ~effect/Effect?: never;Type Parameters
| Type Parameter |
|---|
Eff |
Remarks
A bare Effect is itself iterable (it yields itself), so a plain
Iterable<Eff> would accept Scene.all(effect) and silently run just
that one effect. The TypeId guard rejects a lone Effect at compile time.