File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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
6663export type ComponentContextLegacy = ComponentContext & {
You can’t perform that action at this time.
0 commit comments