123456789101112131415161718 |
- import * as TE from "fp-ts/TaskEither"
- import { HoppRESTRequest, HoppCollection } from "@hoppscotch/data"
- export type HoppExporter<T> = (content: T) => TE.TaskEither<string, string>
- export type HoppExporterDefinition<T> = {
- name: string
- exporter: () => Promise<HoppExporter<T>>
- }
- export const RESTCollectionExporters: HoppExporterDefinition<
- HoppCollection<HoppRESTRequest>
- >[] = [
- {
- name: "Hoppscotch REST Collection JSON",
- exporter: () => import("./hopp").then((m) => m.default),
- },
- ]
|