nuxt-site-config
Version:
Shared site configuration for Nuxt 3 modules.
6 lines (5 loc) • 424 B
TypeScript
import type { H3Event } from 'h3';
import type { CreateSitePathResolverOptions } from '../../types.js';
export declare function createSitePathResolver(e: H3Event, options?: CreateSitePathResolverOptions): (path: string) => string;
export declare function withSiteTrailingSlash(e: H3Event, path: string): string;
export declare function withSiteUrl(e: H3Event, path: string, options?: CreateSitePathResolverOptions): string;