Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

411 B
Raw Blame
/** Writable destination types, matching the server's hosted filesystem restriction. */
export function availableOutputModes(
  hosted = false,
): (
  | "folder"
  | "s3"
  | "onedrive"
  | "sharepoint"
  | "googledrive"
  | "vectordb"
)[] {
  const remote = [
    "s3",
    "onedrive",
    "sharepoint",
    "googledrive",
    "vectordb",
  ] as const;
  return hosted ? [...remote] : ["folder", ...remote];
}