import { trailingSlash } from "astro:config/client"; export function addForwardSlash(path: string): string { if (trailingSlash === "always") { return path.endsWith("/") ? path : path + "/"; } else { return path; } } export const enum Level { OK, INFO, WARN, DEBUG, ERROR, } export type MaybePromise = Promise | T;