refactor: import/export new architecture

This commit is contained in:
Andrew Bastin
2021-12-22 17:36:49 +05:30
parent b6e05d42f3
commit 681a957611
4 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { HoppRESTRequest } from "@hoppscotch/data"
import { pipe } from "fp-ts/function"
import * as TE from "fp-ts/TaskEither"
import { HoppExporter } from "."
import { Collection } from "~/newstore/collections"
const exporter: HoppExporter<Collection<HoppRESTRequest>> = (content) =>
pipe(content, JSON.stringify, TE.right)
export default exporter