Skip to content

Commit 971427f

Browse files
committed
simpler type
1 parent 6d04a5b commit 971427f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/svelte/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class SvelteComponent<
9797
* Does not exist at runtime.
9898
* ### DO NOT USE!
9999
* */
100-
$$prop_def: StripBindable<PropsWithChildren<Props, Slots>>;
100+
$$prop_def: StripBindable<Props>; // Without PropsWithChildren: unnecessary, causes type bugs
101101
/**
102102
* For type checking capabilities only.
103103
* Does not exist at runtime.

packages/svelte/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ declare module 'svelte' {
9393
* Does not exist at runtime.
9494
* ### DO NOT USE!
9595
* */
96-
$$prop_def: StripBindable<PropsWithChildren<Props, Slots>>;
96+
$$prop_def: StripBindable<Props>;
9797
/**
9898
* For type checking capabilities only.
9999
* Does not exist at runtime.

0 commit comments

Comments
 (0)