interface Util {
    isComponent(comp: unknown): boolean;
    isHMRProxy(comp: unknown): boolean;
    outroAndDestroy(instance: SvelteComponent): Promise<void>;
}

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.