Skip to content

Commit

Permalink
fix: types for get/set tags
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Jun 30, 2023
1 parent 01b2103 commit d6f4d64
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-socks-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/tags-api-preview": patch
---

Fix incorrect types for the get/set tags.
4 changes: 4 additions & 0 deletions src/components/get/index.d.marko
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
export interface Input {
value: string;
}

// TODO: this could be better.
return = 1 as unknown;
5 changes: 3 additions & 2 deletions src/components/set/index.d.marko
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export interface Input<T> {
value: T
valueChange?: (newValue: T) => void
value: T,
valueChange?: (newValue: T) => void,
renderBody: Marko.Body<[], void>
}

0 comments on commit d6f4d64

Please sign in to comment.