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

const makeIsExistingUsername: ServiceMethodFactory<
  AuthServiceDeps,
  [string],
  boolean
> = (_) => {
  return (username) => {
    return username === "username";
  };
};

export default makeIsExistingUsername;