From 2784fb19f3f38963b9c5e7d0fbcb7182fd5d589b Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 31 Oct 2024 11:37:30 -0400 Subject: [PATCH] Revert "feat: add `ComponentExports` utility type (#13441)" (#14069) This reverts commit d93ad3ba1e8c28c2facaec49e19d2ac1ed577e9f. --- .changeset/rotten-cups-float.md | 5 ----- packages/svelte/src/index.d.ts | 20 ------------------ packages/svelte/tests/types/component.ts | 26 +----------------------- packages/svelte/types/index.d.ts | 20 ------------------ 4 files changed, 1 insertion(+), 70 deletions(-) delete mode 100644 .changeset/rotten-cups-float.md diff --git a/.changeset/rotten-cups-float.md b/.changeset/rotten-cups-float.md deleted file mode 100644 index e58d4f26df..0000000000 --- a/.changeset/rotten-cups-float.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'svelte': patch ---- - -chore: provide `ComponentExports` utility type diff --git a/packages/svelte/src/index.d.ts b/packages/svelte/src/index.d.ts index 262337ef0a..5130721cbe 100644 --- a/packages/svelte/src/index.d.ts +++ b/packages/svelte/src/index.d.ts @@ -237,26 +237,6 @@ export type ComponentProps> = ? Props : never; -/** - * Convenience type to get the properties that given component exports. - * - * Example: Typing the `bind:this` for a component named `MyComponent` - * ``` - *