Skip to content

Commit

Permalink
Remove incorrect static override type annotations in class definitions (
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti authored Jul 20, 2024
1 parent 99bddcf commit 6921c4f
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 175 deletions.
7 changes: 7 additions & 0 deletions .changeset/quick-zebras-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@effect/schema": patch
---

Remove incorrect static override type annotations in class definitions.

This will also improve tree-shakeability.
3 changes: 0 additions & 3 deletions packages/schema/dtslint/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ hole<S.Schema.Type<typeof S.Never>>()
// @ts-expect-error
S.String.annotations({ a: 1 })

// $ExpectType typeof String$
S.String.annotations({ [Symbol.for("a")]: 1 })

/**
* @category api interface
* @since 1.0.0
Expand Down
Loading

0 comments on commit 6921c4f

Please sign in to comment.