Using `effect.fn` with Generics

can i use effect.fn with generics?

like i have this


        const mutate = Effect.fn('mutate')(function* (
            type: MutationName,
            ticketId: string,
            payload: MutationPayload<MutationName>,
        ) {


and want MutationName to be available as generic, e.g. T
Was this page helpful?