Class SvelteComponentTyped<Props, Events, Slots>

Use SvelteComponent instead. See PR for more information: https://github.com/sveltejs/svelte/pull/8512

Type Parameters

  • Props extends Record<string, any> = any
  • Events extends Record<string, any> = any
  • Slots extends Record<string, any> = any
Hierarchy

Constructors

Methods

Constructors

Methods

  • Type Parameters

    • K extends string

    Parameters

    • type: K
    • callback: ((e: Events[K]) => void)
        • (e): void
        • Parameters

          Returns void

    Returns (() => void)

      • (): void
      • Returns void