vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
12 lines • 459 B
TypeScript
/**
* Simplifies the route string to a string to can be concatenated with the base URL.
*
* Pass the configured baseURL and it will be removed from the route.
*
* @param route - The route to convert to a URL.
* @param baseURL - The base URL to use.
* @param fileName - The file name to use.
* @returns The URL.
*/
export declare const routeToURL: (route: string, baseURL: string, fileName?: string) => string;
//# sourceMappingURL=routeToURL.d.ts.map