-
-
Notifications
You must be signed in to change notification settings - Fork 260
Closed
Labels
bugSomething isn't workingSomething isn't workingcoreeffector packageeffector packagetypingsTypescript public type definitions issuesTypescript public type definitions issues
Description
Invoking attach within factories with an unbounded type parameter causes an error when the effect in attach returns that type parameter.
effector/packages/effector/index.d.ts
Lines 2813 to 2815 in 8791345
| }): FX extends (source: any, ...args: infer Args) => infer Done | |
| ? Effect<OptionalParams<Args>, AsyncResult<Done>> | |
| : never |
Reproduction (with error and proposed fix): https://tsplay.dev/NdbxdW
The Awaited type I used is available in TS since version 4.5
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcoreeffector packageeffector packagetypingsTypescript public type definitions issuesTypescript public type definitions issues
