File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed
packages/svelte/src/internal/client/dom/blocks Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,18 @@ import { loop } from '../../loop.js';
4545 * }} BoundaryProps
4646 */
4747
48+ var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT ;
49+
50+ /**
51+ * @param {TemplateNode } node
52+ * @param {BoundaryProps } props
53+ * @param {((anchor: Node) => void) } children
54+ * @returns {void }
55+ */
56+ export function boundary ( node , props , children ) {
57+ new Boundary ( node , props , children ) ;
58+ }
59+
4860export class Boundary {
4961 suspended = false ;
5062 inert = false ;
@@ -385,24 +397,6 @@ export class Boundary {
385397 }
386398}
387399
388- var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT ;
389-
390- /**
391- * @param {TemplateNode } node
392- * @param {{
393- * onerror?: (error: unknown, reset: () => void) => void;
394- * failed?: (anchor: Node, error: () => unknown, reset: () => () => void) => void;
395- * pending?: (anchor: Node) => void;
396- * showPendingAfter?: number;
397- * showPendingFor?: number;
398- * }} props
399- * @param {((anchor: Node) => void) } children
400- * @returns {void }
401- */
402- export function boundary ( node , props , children ) {
403- new Boundary ( node , props , children ) ;
404- }
405-
406400/**
407401 *
408402 * @param {Effect } effect
You can’t perform that action at this time.
0 commit comments