Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/slow-pans-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"marko": patch
"@marko/runtime-tags": patch
---

Deprecate `Marko.Body` in favor of `Marko.Content`
6 changes: 4 additions & 2 deletions packages/runtime-class/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ declare global {
text(val: string | void): void;
}

/** Body content created from by a component, typically held in an object with a renderBody property. */
/** @deprecated prefer `Marko.Content` */
export interface Body extends Content {}

export interface Body<
/** Body content created from by a component, typically held in an object with a `renderBody` property. */
export interface Content<
in Params extends readonly any[] = [],
out Return = void,
> {}
Expand Down
7 changes: 5 additions & 2 deletions packages/runtime-tags/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ declare global {
$global?: Global;
};

/** Body content created by a template. */
export interface Body<
/** @deprecated prefer `Marko.Content` */
export interface Body extends Content {}

/** Body content created from by a component, typically held in an object with a `content` property. */
export interface Content<
in Params extends readonly any[] = [],
out Return = void,
> {}
Expand Down