interface Util {
    isComponent(comp: unknown): comp is SvelteComponent<any, any, any>;
    isHMRProxy(comp: unknown): boolean;
    outroAndDestroy(instance: SvelteComponent): Promise<void>;
}
Index
  • 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 comp is SvelteComponent<any, any, any>

    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.