UNPKG

@typed/io

Version:

Runtime IO type system

20 lines 560 B
import * as D from '../decoder'; import * as E from '../encoder'; import * as G from '../guard'; import { Any } from './Type'; export const remoteData = (left, right, name = `RemoteData<${left.name}, ${right.name}>`) => { const g = G.remoteData(left, right); const d = D.remoteData(left, right); const e = E.Encoder.id(); return { ...g, ...d, ...e, name, left, right, }; }; const _RemoteData = remoteData(Any, Any); export { _RemoteData as RemoteData }; //# sourceMappingURL=RemoteData.js.map