vike
Version:
The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.
31 lines (30 loc) • 1.28 kB
TypeScript
import '../assertEnvVite.js';
export { getFilePathResolved };
export { getFilePathUnresolved };
export { getFilePathAbsoluteUserRootDir };
export { getFilePathToShowToUserUnknown };
export { getFilePathToShowToUserModule };
export { cleanFilePathUnknown };
export { assertModuleId };
import type { FilePathResolved, FilePathUnresolved } from '../../../types/FilePath.js';
import type { ResolvedConfig } from 'vite';
declare function getFilePathResolved(args: {
userRootDir: string;
} & ({
filePathAbsoluteFilesystem: string;
importPathAbsolute: string;
} | {
filePathAbsoluteUserRootDir: string;
importPathAbsolute?: string;
})): FilePathResolved;
declare function getFilePathUnresolved(args: {
importPathAbsolute: string;
}): FilePathUnresolved;
declare function getFilePathAbsoluteUserRootDir({ filePathAbsoluteFilesystem, userRootDir, }: {
filePathAbsoluteFilesystem: string;
userRootDir: string;
}): string | null;
declare function getFilePathToShowToUserModule(moduleId: string, config: ResolvedConfig): string;
declare function assertModuleId(moduleId: string): void;
declare function getFilePathToShowToUserUnknown(filePathUnknown: string, userRootDir: string): string;
declare function cleanFilePathUnknown(filePathUnknown: string): string;