marko 6.0.0-next.3.37 → 6.0.0-next.3.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/debug/dom.js +48 -54
- package/dist/debug/dom.mjs +48 -54
- package/dist/dom/compat.d.ts +2 -2
- package/dist/dom/control-flow.d.ts +4 -5
- package/dist/dom/signals.d.ts +1 -2
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +67 -67
- package/dist/dom.mjs +67 -67
- package/dist/translator/core/for.d.ts +0 -9
- package/dist/translator/core/if.d.ts +0 -8
- package/dist/translator/index.js +549 -549
- package/dist/translator/util/is-only-child-in-parent.d.ts +14 -0
- package/package.json +1 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import { types as t } from "@marko/compiler";
|
2
|
+
import { type Binding } from "./references";
|
3
|
+
import type { Section } from "./sections";
|
4
|
+
declare const kOnlyChildInParent: unique symbol;
|
5
|
+
declare const kNodeRef: unique symbol;
|
6
|
+
declare module "@marko/compiler/dist/types" {
|
7
|
+
interface NodeExtra {
|
8
|
+
[kOnlyChildInParent]?: boolean;
|
9
|
+
[kNodeRef]?: Binding;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
export declare function isOnlyChildInParent(tag: t.NodePath<t.MarkoTag>, branchSize?: number): boolean;
|
13
|
+
export declare function getOptimizedOnlyChildNodeRef(tag: t.NodePath<t.MarkoTag>, section: Section, branchSize?: number): Binding;
|
14
|
+
export {};
|