refactor: import/export new architecture
This commit is contained in:
10
packages/hoppscotch-app/helpers/import-export/export/hopp.ts
Normal file
10
packages/hoppscotch-app/helpers/import-export/export/hopp.ts
Normal 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
|
||||
Reference in New Issue
Block a user