schema-tagged-union-case-factories
Construct instances of Effect Schema tagged unions with their case-specific factories, not manually tagged object literals: Union.cases.Fail.make({ reason }), not { _tag: “Fail”, reason }.
- Applies when
- constructing members of Effect Schema tagged unions.
- File types
- TypeScript
- TSX
- ID
8e310fce-e255-426c-8c51-92e45dffd9b3
Skipping this trait
Add this comment before any code to skip the trait for a whole file. A reason is required.
File header
// traits-ignore-file 8e310fce-e255-426c-8c51-92e45dffd9b3: <reason>