Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

429 B
Raw Blame
import { HoppCollection } from "@hoppscotch/data"
import { ReqType } from "~/helpers/backend/graphql"
import * as E from "fp-ts/Either"

export type CollectionsPlatformDef = {
  initCollectionsSync: () => void
  loadUserCollections?: (collectionType: "REST" | "GQL") => Promise<void>
  importToPersonalWorkspace?: (
    collections: HoppCollection[],
    reqType: ReqType
  ) => Promise<E.Either<string, { success: boolean }>>
}