marko 6.0.37 → 6.0.39
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/index.d.ts +6 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -47,7 +47,12 @@ declare global {
|
|
47
47
|
|
48
48
|
/** The result of calling `template.mount`. */
|
49
49
|
export type MountedTemplate<Input = unknown, Return = unknown> = {
|
50
|
-
value: Return;
|
50
|
+
get value(): Return extends { value: infer Value } ? Value : void;
|
51
|
+
set value(
|
52
|
+
next: Return extends { valueChange?(next: infer Next): any }
|
53
|
+
? Next
|
54
|
+
: never,
|
55
|
+
): void;
|
51
56
|
update(input: Marko.TemplateInput<Input>): void;
|
52
57
|
destroy(): void;
|
53
58
|
};
|