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.
Files changed (2) hide show
  1. package/index.d.ts +6 -1
  2. 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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.37",
3
+ "version": "6.0.39",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",