diff --git a/.changeset/real-ducks-talk.md b/.changeset/real-ducks-talk.md new file mode 100644 index 0000000000..2ab62c5d43 --- /dev/null +++ b/.changeset/real-ducks-talk.md @@ -0,0 +1,5 @@ +--- +"marko": patch +--- + +Fix types for onsecuritypolicyviolation native attribute. diff --git a/.changeset/shy-mirrors-peel.md b/.changeset/shy-mirrors-peel.md new file mode 100644 index 0000000000..c03eb0f615 --- /dev/null +++ b/.changeset/shy-mirrors-peel.md @@ -0,0 +1,5 @@ +--- +"marko": patch +--- + +Fix types for tag attribute tags. diff --git a/packages/marko/src/core-tags/core/await/index.d.marko b/packages/marko/src/core-tags/core/await/index.d.marko index a5239270e0..90fd88c96b 100644 --- a/packages/marko/src/core-tags/core/await/index.d.marko +++ b/packages/marko/src/core-tags/core/await/index.d.marko @@ -1,8 +1,8 @@ export interface Input { value: readonly [T]; - then?: { renderBody: Marko.Body<[Awaited]> }; - catch?: { renderBody: Marko.Body<[unknown]> }; - placeholder?: { renderBody: Marko.Body }; + then?: Marko.AttrTag<{ renderBody: Marko.Body<[Awaited]> }>; + catch?: Marko.AttrTag<{ renderBody: Marko.Body<[unknown]> }>; + placeholder?: Marko.AttrTag<{ renderBody: Marko.Body }>; "client-reorder"?: boolean; name?: string; timeout?: number; diff --git a/packages/marko/tags-html.d.ts b/packages/marko/tags-html.d.ts index 4cbab3d6b6..21725bc29b 100644 --- a/packages/marko/tags-html.d.ts +++ b/packages/marko/tags-html.d.ts @@ -3202,7 +3202,7 @@ declare global { T >; "on-securitypolicyviolation"?: this["onSecurityPolicyViolation"]; - onsecuritypolicyviolation?: Attrstring; + onsecuritypolicyviolation?: AttrString; /** * Fired when a seek operation on a media element completes.