index.ts (hoppscotch-2.2.1) | : | index.ts (hoppscotch-3.0.0) | ||
---|---|---|---|---|
import * as TE from "fp-ts/TaskEither" | import * as TE from "fp-ts/TaskEither" | |||
import { HoppRESTRequest, HoppCollection } from "@hoppscotch/data" | import { HoppRESTRequest, HoppCollection } from "@hoppscotch/data" | |||
export type HoppExporter<T> = (content: T) => TE.TaskEither<string, string> | export type HoppExporter<T> = (content: T) => TE.TaskEither<string, string> | |||
export type HoppExporterDefintion<T> = { | export type HoppExporterDefinition<T> = { | |||
name: string | name: string | |||
exporter: () => Promise<HoppExporter<T>> | exporter: () => Promise<HoppExporter<T>> | |||
} | } | |||
export const RESTCollectionExporters: HoppExporterDefintion< | export const RESTCollectionExporters: HoppExporterDefinition< | |||
HoppCollection<HoppRESTRequest> | HoppCollection<HoppRESTRequest> | |||
>[] = [ | >[] = [ | |||
{ | { | |||
name: "Hoppscotch REST Collection JSON", | name: "Hoppscotch REST Collection JSON", | |||
exporter: () => import("./hopp").then((m) => m.default), | exporter: () => import("./hopp").then((m) => m.default), | |||
}, | }, | |||
] | ] | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |