From 6940665ffd03e6513fcf550cf5cbe1ec117d3d8a Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Tue, 28 Jun 2022 22:47:46 +0200 Subject: [PATCH 1/7] Update src/runtime/internal/dev.ts Co-authored-by: Hofer Ivan --- src/runtime/internal/dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/dev.ts b/src/runtime/internal/dev.ts index d6987990c6..c3d76a80f2 100644 --- a/src/runtime/internal/dev.ts +++ b/src/runtime/internal/dev.ts @@ -287,7 +287,7 @@ export type ComponentType - * import { ComponentProps } from 'svelte'; + * import type { ComponentProps } from 'svelte'; * import Component from './Component.svelte'; * * const props: ComponentProps = { foo: 'bar' }; // Errors if these aren't the correct props From 59638bb2e385bb9fa0ffcdb8157d79c7a40e57b2 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Tue, 28 Jun 2022 22:47:53 +0200 Subject: [PATCH 2/7] Update src/runtime/internal/dev.ts Co-authored-by: Hofer Ivan --- src/runtime/internal/dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/dev.ts b/src/runtime/internal/dev.ts index c3d76a80f2..cd7c12831d 100644 --- a/src/runtime/internal/dev.ts +++ b/src/runtime/internal/dev.ts @@ -273,7 +273,7 @@ export class SvelteComponentTyped< * import Component2 from './Component2.svelte'; * * const component: ComponentType = someLogic() ? Component1 : Component2; - * const componentOfCertainSubType: ComponentType> = someLogic() ? Component1 : Component2; + * const componentOfCertainSubType: ComponentType> = someLogic() ? Component1 : Component2; * * * From df48d977ff86e86cf24dbee634dc515ca123cfbe Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Tue, 28 Jun 2022 22:48:07 +0200 Subject: [PATCH 3/7] Update src/runtime/internal/dev.ts Co-authored-by: Hofer Ivan --- src/runtime/internal/dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/dev.ts b/src/runtime/internal/dev.ts index cd7c12831d..c2ba22c1fa 100644 --- a/src/runtime/internal/dev.ts +++ b/src/runtime/internal/dev.ts @@ -268,7 +268,7 @@ export class SvelteComponentTyped< * Example: * ```html * * - * - * + * + * * ``` */ export type ComponentType> =