hopp.ts 322 B

123456789
  1. import { HoppRESTRequest, HoppCollection } from "@hoppscotch/data"
  2. import { pipe } from "fp-ts/function"
  3. import * as TE from "fp-ts/TaskEither"
  4. import { HoppExporter } from "."
  5. const exporter: HoppExporter<HoppCollection<HoppRESTRequest>> = (content) =>
  6. pipe(content, JSON.stringify, TE.right)
  7. export default exporter