GitFOSS
.ts
TypeScript
(application/typescript)
// 1st-party
import { ServiceMethodFactory } from "@ethicdevs/react-monolith";
// app
import { CryptoServiceDeps } from "./types";

const makeCompareHash: ServiceMethodFactory<
  CryptoServiceDeps,
  [string, string],
  boolean
> = (deps) => {
  return (a, b) => {
    return deps.compare(a, b);
  };
};

export default makeCompareHash;