10 lines
322 B
TypeScript
10 lines
322 B
TypeScript
import { HoppRESTRequest, HoppCollection } from "@hoppscotch/data"
|
|
import { pipe } from "fp-ts/function"
|
|
import * as TE from "fp-ts/TaskEither"
|
|
import { HoppExporter } from "."
|
|
|
|
const exporter: HoppExporter<HoppCollection<HoppRESTRequest>> = (content) =>
|
|
pipe(content, JSON.stringify, TE.right)
|
|
|
|
export default exporter
|