GitFOSS
.ts
TypeScript
(application/typescript)
// 1st-party
import { makeService } from "@ethicdevs/react-monolith";
// app
import type { RepositoryServiceAPI, RepositoryServiceDeps } from "./types";
// service methods
import { default as makeGetHttpCloneUrl } from "./getHttpCloneUrl";
import { default as makeGetRepositoryExploreCollection } from "./getRepositoryExploreCollection";
import { default as makeGetSshCloneUrl } from "./getSshCloneUrl";

export const makeRepositoryService = makeService<
  RepositoryServiceAPI,
  RepositoryServiceDeps
>({
  getHttpCloneUrl: makeGetHttpCloneUrl,
  getRepositoryExploreCollection: makeGetRepositoryExploreCollection,
  getSshCloneUrl: makeGetSshCloneUrl,
});