Skip to content

Allow passing name for attach without mapParams/source #1000

@NazariiShvets

Description

@NazariiShvets

Missing/Incorrect APIs

Can't pass name paramether in attach without mapParams/source

Suggested Implementation

Current:

export function attach<
  FX extends Effect<any, any, any>,
>(config: {
  effect: FX
}): Effect<EffectParams<FX>, EffectResult<FX>, EffectError<FX>>

New:

export function attach<
  FX extends Effect<any, any, any>,
>(config: {
  effect: FX,
  name?: string;
}): Effect<EffectParams<FX>, EffectResult<FX>, EffectError<FX>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerstypingsTypescript public type definitions issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions