• Wraps fetch in a TaskEither.tryCatch.

    Parameters

    • input: RequestInfo | URL
    • Optional init: RequestInit

    Returns TaskEither<ServerError, Response>

    Example

    import { safeFetch } from '@jvlk/fp-ts-fetch'

    safeFetch('testing.com')

    Since

    1.0.0