Skip to content

Commit 9f21043

Browse files
committed
types
1 parent 2e9d8ec commit 9f21043

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/svelte/src/internal/client/types.d.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ export type ComponentContext = {
2424
f: number;
2525
/** mounted */
2626
m: boolean;
27-
/**
28-
* props — needed for legacy mode lifecycle functions, and for `createEventDispatcher`
29-
* @deprecated remove in 6.0
30-
*/
27+
/** props — needed for legacy mode lifecycle functions, for `createEventDispatcher` and teardown */
3128
s: Record<string, unknown>;
3229
/**
3330
* exports (and props, if `accessors: true`) — needed for `createEventDispatcher`
@@ -55,12 +52,12 @@ export type ComponentContext = {
5552
/** This tracks whether `$:` statements have run in the current cycle, to ensure they only run once */
5653
r2: Source<boolean>;
5754
};
55+
/** teardown props */
56+
tp: Record<string, unknown>;
5857
/**
5958
* dev mode only: the component function
6059
*/
6160
function?: any;
62-
/** teardown props */
63-
tp: Record<string, unknown>;
6461
};
6562

6663
export type ComponentContextLegacy = ComponentContext & {

0 commit comments

Comments
 (0)