Typing the Return Type of a Service Effect in TypeScript
How can I properly type the return type of the effect of a service?
I tried with the following, but instead of the breader type (LanguageModel) it is inferring the specific one returned from the function (which is one of the possible enum values):
I tried with the following, but instead of the breader type (LanguageModel) it is inferring the specific one returned from the function (which is one of the possible enum values):
