AnimatedSignalOptions: Partial<TOpt> & Pick<
    CreateSignalOptions<TVal>,
    "debugName",
> & {
    injector?: Injector;
    interpolator: InterpolateFactoryFn<TVal>;
    raf?: AnimationFrameFn;
}

Options for an AnimatedSignal.

Type Parameters

Type declaration

  • Optionalinjector?: Injector

    This is only used if a signal is created from an observable.

  • interpolator: InterpolateFactoryFn<TVal>

    The interpolator is required unless numeric values are used.

  • Optionalraf?: AnimationFrameFn

    A function to get the next animation frame. Defaults to window.requestAnimationFrame in browser context.