Explicitly Typing Return Value While Inferring Other Parameters

is there some way to explicitly type the return value, while leaving the other effect params inferred? Like in fsharp you can do Result<string, _>, the err is inferred. Trying to do the same with this const fetchProjectMRsWithCache: (key: ProjectMRCacheKey) => Effect.Effect<readonly MergeRequest[], string | PlatformError | ParseError | SearchJiraIssuesError | BitbucketCredentialsNotConfiguredError | FetchBitbucketPrsError | BitbucketPrsJsonParseError | FetchGitlabProjectMrsError, MergeRequestStorage>
Was this page helpful?