Focusing
Block or Report
Block or report effe-megna
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
ValiflaKtion Public
🔮 A model validation library, written in Kotlin, that use annotations and reflectionKotlin 9
-
1
/**2*3* Port of [RemoteData](https://github.com/devexperts/remote-data-ts/blob/master/src/remote-data.ts)4*5* Represents a value of one of four possible types (a disjoint union) -
1
import { Reader } from 'fp-ts/lib/Reader'
2import { Monad3 } from 'fp-ts/lib/Monad'
3import * as RD from "@devexperts/remote-data-ts"
4import * as T from "fp-ts/lib/Task"
5import { monadTaskRemoteData, TaskRemoteData, TRD } from "./TaskRemoteData"
-
-
1
type TryADT <E, A> =
2| { readonly _tag: "success", readonly success: A }
3| { readonly _tag: "failure", readonly failure: E }
45const success = <E, A>(successValue: A): TryADT<E, A> => ({ _tag: "success", success: successValue })



