watcher
Esta página aún no está disponible en tu idioma.
Functions
Section titled “Functions”exists()
Section titled “exists()”function exists(path: undefined | string): boolean
Defined in: watcher.ts:9^
Checks whether the specified file or directory exists.
Parameters
Section titled “Parameters”The path to the file or directory to check. If undefined
, the function returns false
.
undefined
| string
Returns
Section titled “Returns”boolean
true
if the file or directory exists, otherwise false
.
findConfig()
Section titled “findConfig()”function findConfig(projectRootUrl: string, configPaths: string[]): undefined | string
Defined in: watcher.ts:29^
Searches for the first existing configuration file in the provided list of paths.
Parameters
Section titled “Parameters”projectRootUrl
Section titled “projectRootUrl”string
The root URL or directory of the project.
configPaths
Section titled “configPaths”string
[]
An array of relative paths to potential configuration files.
Returns
Section titled “Returns”undefined
| string
The URL of the first existing configuration file, or undefined
if none are found.