mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
fix(typescript): add no-update-body and no-update-body-if (#1945)
* fix(typescript): add no-update-body and no-update-body-if * Create changeset
This commit is contained in:
parent
e940554405
commit
ce2ab47637
5
.changeset/lemon-deers-stare.md
Normal file
5
.changeset/lemon-deers-stare.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"marko": patch
|
||||
---
|
||||
|
||||
fix(typescript): add no-update-body and no-update-body-if
|
||||
15
packages/marko/tags-html.d.ts
vendored
15
packages/marko/tags-html.d.ts
vendored
@ -2303,14 +2303,25 @@ declare global {
|
||||
key?: AttrString;
|
||||
|
||||
/**
|
||||
* Tells Marko to avoid updating the element or it's contents (excluding custom tags which may rerender independently).
|
||||
* Tells Marko to avoid updating the element or its contents (excluding custom tags which may rerender independently).
|
||||
*/
|
||||
"no-update"?: AttrBoolean;
|
||||
|
||||
/**
|
||||
* Tells Marko to avoid updating an elements contents (excluding custom tags which may rerender independently).
|
||||
* Tells Marko to avoid updating an element's contents (excluding custom tags which may rerender independently). Used instead of no-update when runtime functionality is needed.
|
||||
*/
|
||||
"no-update-if"?: AttrBoolean;
|
||||
|
||||
/**
|
||||
* Tells Marko to avoid updating an element's body.
|
||||
*/
|
||||
"no-update-body"?: AttrBoolean;
|
||||
|
||||
/**
|
||||
* Tells Marko to avoid updating an element's body. Used instead of no-update-body when runtime functionality is needed.
|
||||
* @see https://markojs.com/docs/syntax/#conditional-rendering
|
||||
*/
|
||||
"no-update-body-if"?: AttrBoolean;
|
||||
}
|
||||
|
||||
interface HTMLAttributes<T extends Element = Element>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user