marko 5.40.2 → 5.40.3

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 +10 -14
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -251,22 +251,18 @@ declare global {
251
251
  */
252
252
 
253
253
  /** @marko-overload-start */
254
- /** Asynchronously render the template. */
254
+ /** Asynchronously render the template, to a stream or (with a callback) in buffered mode. */
255
255
  abstract render(
256
256
  input: Marko.TemplateInput<Input>,
257
- stream?: {
258
- write: (chunk: string) => void;
259
- end: (chunk?: string) => void;
260
- },
261
- ): Marko.Out<Marko.Component>;
262
-
263
- /** Asynchronously render the template in buffered mode. */
264
- abstract render(
265
- input: Marko.TemplateInput<Input>,
266
- cb?: (
267
- err: Error | null,
268
- result: Marko.RenderResult<Marko.Component>,
269
- ) => void,
257
+ streamOrCallback?:
258
+ | {
259
+ write: (chunk: string) => void;
260
+ end: (chunk?: string) => void;
261
+ }
262
+ | ((
263
+ err: Error | null,
264
+ result: Marko.RenderResult<Marko.Component>,
265
+ ) => void),
270
266
  ): Marko.Out<Marko.Component>;
271
267
 
272
268
  /** Synchronously render the template. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.40.2",
3
+ "version": "5.40.3",
4
4
  "private": false,
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "keywords": [
@@ -83,7 +83,7 @@
83
83
  "warp10": "^2.1.0"
84
84
  },
85
85
  "devDependencies": {
86
- "marko": "5.40.2"
86
+ "marko": "5.40.3"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=22.12.0"