Saltearse al contenido

watcher

Esta página aún no está disponible en tu idioma.

function exists(path: undefined | string): boolean

Defined in: watcher.ts:9^

Checks whether the specified file or directory exists.

The path to the file or directory to check. If undefined, the function returns false.

undefined | string

boolean

true if the file or directory exists, otherwise false.


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.

string

The root URL or directory of the project.

string[]

An array of relative paths to potential configuration files.

undefined | string

The URL of the first existing configuration file, or undefined if none are found.