UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

32 lines (31 loc) 1.38 kB
export { getFilePathResolved }; export { getFilePathUnresolved }; export { getFilePathAbsoluteUserRootDir }; export { getFilePathToShowToUserFromUnknown }; export { getModuleFilePathAbsolute }; export { getModuleFilePathRelative }; 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 getModuleFilePathAbsolute(moduleId: string, config: ResolvedConfig): string; declare function getModuleFilePathRelative(moduleId: string, config: ResolvedConfig): string; declare function assertModuleId(moduleId: string): void; declare function getFilePathToShowToUserFromUnknown(filePathUnknown: string, userRootDir: string): string; declare function cleanFilePathUnknown(filePathUnknown: string): string;