marko 6.0.0-next.3.75 → 6.0.0-next.3.77
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 +2 -1
- package/dist/debug/dom.mjs +2 -1
- package/dist/dom.js +2 -2
- package/dist/dom.mjs +2 -2
- package/dist/translator/index.js +864 -785
- package/dist/translator/util/dynamic-sources.d.ts +1 -2
- package/dist/translator/util/evaluate.d.ts +1 -1
- package/dist/translator/util/generate-uid.d.ts +3 -0
- package/dist/translator/util/traverse.d.ts +1 -0
- package/package.json +1 -1
@@ -1,9 +1,8 @@
|
|
1
1
|
import { types as t } from "@marko/compiler";
|
2
2
|
import type { Opt } from "./optional";
|
3
|
-
import { type Binding
|
3
|
+
import { type Binding } from "./references";
|
4
4
|
import { type Section } from "./sections";
|
5
5
|
export declare function getDynamicSourcesForBinding(binding: Binding): true | import("./optional").OneMany<Binding> | undefined;
|
6
|
-
export declare function getDynamicSourcesForReferences(referencedBindings: ReferencedBindings): true | Binding | import("./optional").Many<Binding> | undefined;
|
7
6
|
export declare function getDynamicSourcesForExtra(extra: t.NodeExtra): true | Binding | import("./optional").Many<Binding> | undefined;
|
8
7
|
export declare function getDynamicSourcesForExtras(extras: Iterable<t.NodeExtra>): true | Opt<Binding>;
|
9
8
|
export declare function getDynamicSourcesForSection(section: Section): {
|
@@ -5,7 +5,7 @@ declare module "@marko/compiler/dist/types" {
|
|
5
5
|
computed?: unknown;
|
6
6
|
}
|
7
7
|
}
|
8
|
-
export default function evaluate
|
8
|
+
export default function evaluate<T extends t.Expression>(value: T): T["extra"] & {
|
9
9
|
confident: boolean;
|
10
10
|
computed: unknown;
|
11
11
|
};
|
@@ -6,4 +6,5 @@ type VisitKeys<T> = (string | number) & (T extends T ? {
|
|
6
6
|
}[keyof T] : never);
|
7
7
|
export declare function traverseReplace<T, K extends VisitKeys<T>>(container: T, key: K, enter: (node: t.Node, container: t.Node | t.Node[], key: string | number) => t.Node | void): void;
|
8
8
|
export declare function traverseContains(node: undefined | null | t.Node | t.Node[], check: (node: t.Node) => void | boolean | typeof skip): boolean;
|
9
|
+
export declare function traverse(visit: (node: t.Node, parent?: t.Node, grandParent?: t.Node) => void | typeof skip, node: undefined | t.Node | t.Node[], parent?: t.Node, grandParent?: t.Node): void;
|
9
10
|
export {};
|