Methods
existsSync
- existsSync(path: string): boolean
Parameters
Returns boolean
Optional initWatcher
Parameters
Returns void
isDirectory
- isDirectory(path: string): boolean
Parameters
Returns boolean
tryResolveRealFile
- tryResolveRealFile(path: string, preserveSymlinks?: boolean): undefined | string
Parameters
path: string
Optional preserveSymlinks: boolean
Returns undefined | string
tryResolveRealFileOrType
- tryResolveRealFileOrType(path: string, preserveSymlinks?: boolean): undefined | { path?: string; type: "file" | "directory" }
Parameters
path: string
Optional preserveSymlinks: boolean
Returns undefined | { path?: string; type: "file" | "directory" }
tryResolveRealFileWithExtensions
- tryResolveRealFileWithExtensions(path: string, extensions: string[], preserveSymlinks?: boolean): undefined | string
Parameters
path: string
extensions: string[]
Optional preserveSymlinks: boolean
Returns undefined | string