Type ApiResponse<'a> is ambiguous with Result<'a,_>
Szer opened this issue · 1 comments
Szer commented
/// Telegram Bot Api Response
type ApiResponse<'a> =
{ /// True if request success
Ok: bool
/// Result of request
Result: 'a option
Description: string option
ErrorCode: int option }
/// Telegram Bot Api Response Error
type ApiResponseError =
{ Description: string
ErrorCode: int }
This code above is essentialy
type ApiReponse<'a> = Result<'a, ApiResponseError>
but without Result.map and Result.bind
Dolfik1 commented
It's changed in new versions of Funogram