Skip to content

Commit

Permalink
fix: "Unused '@ts-expect-error' directive" compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
svallory authored and DylanPiercey committed Mar 11, 2024
1 parent 4c3b67c commit fd6ba01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-dots-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/tags-api-preview": patch
---

Fix "Unused '@ts-expect-error' directive" compilation error when noUnusedParameters is false
2 changes: 1 addition & 1 deletion src/components/get/index.d.marko
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-expect-error 'VariableType' is declared but its value is never read. (It is only used to set the type of the return)
// @ts-ignore We need to ignore instead of -expect-error because the error only happens when noUnusedParameters compiler option is true
export interface Input<VariableType = unknown> {
value: string;
}
Expand Down

0 comments on commit fd6ba01

Please sign in to comment.