Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/heft > WatchGlobFn

WatchGlobFn type

Glob a set of files and return a map of paths that match the provided patterns to their current state in the watcher.

Signature:

export type WatchGlobFn = (pattern: string | string[], options?: IGlobOptions | undefined) => Promise<Map<string, IWatchedFileState>>;

References: IGlobOptions, IWatchedFileState