Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Dec 14, 2023
1 parent 1f59474 commit 230b42f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-ducks-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"marko": patch
---

Fix types for onsecuritypolicyviolation native attribute.
5 changes: 5 additions & 0 deletions .changeset/shy-mirrors-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"marko": patch
---

Fix types for <await> tag attribute tags.
6 changes: 3 additions & 3 deletions packages/marko/src/core-tags/core/await/index.d.marko
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export interface Input<T> {
value: readonly [T];
then?: { renderBody: Marko.Body<[Awaited<T>]> };
catch?: { renderBody: Marko.Body<[unknown]> };
placeholder?: { renderBody: Marko.Body };
then?: Marko.AttrTag<{ renderBody: Marko.Body<[Awaited<T>]> }>;
catch?: Marko.AttrTag<{ renderBody: Marko.Body<[unknown]> }>;
placeholder?: Marko.AttrTag<{ renderBody: Marko.Body }>;
"client-reorder"?: boolean;
name?: string;
timeout?: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/marko/tags-html.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 230b42f

Please sign in to comment.