Various utilities to duck type / detect Svelte components and run outro transition while destroying a component externally.

Constructors

Methods

  • Provides basic duck typing to determine if the provided function is a constructor function for a Svelte component.

    Parameters

    • comp: unknown

      Data to check as a Svelte component.

    Returns boolean

    Whether basic duck typing succeeds.

  • Provides basic duck typing to determine if the provided object is a HMR ProxyComponent instance or class.

    Parameters

    • comp: unknown

      Data to check as a HMR proxy component.

    Returns boolean

    Whether basic duck typing succeeds.