Skip to content

Commit

Permalink
Forbid usage of property "name" in Effect.Tag (#3288)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikearnaldi authored Jul 18, 2024
1 parent 29a5389 commit 3afcc93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-ladybugs-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

Forbid usage of property "name" in Effect.Tag
13 changes: 7 additions & 6 deletions packages/effect/src/Effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5958,12 +5958,13 @@ export declare namespace Tag {
* @category models
*/
export interface ProhibitedType {
_op?: "propety name _op is forbidden"
_tag?: "propety name _tag is forbidden"
of?: "propety name of is forbidden"
context?: "propety name context is forbidden"
key?: "propety name key is forbidden"
stack?: "propety name stack is forbidden"
_op?: `propety "_op" is forbidden`
_tag?: `propety "_tag" is forbidden`
of?: `propety "of" is forbidden`
context?: `propety "context" is forbidden`
key?: `propety "key" is forbidden`
stack?: `propety "stack" is forbidden`
name?: `propety "name" is forbidden`
}

/**
Expand Down

0 comments on commit 3afcc93

Please sign in to comment.