Home > @rushstack/heft > IWatchFileSystem > getStateAndTrackAsync
IWatchFileSystem.getStateAndTrackAsync() method
Tells the adapter to track the specified file (or folder) as used. Returns an object containing data about the state of said file (or folder). Uses promise-based API.
Signature:
getStateAndTrackAsync(filePath: string): Promise<IWatchedFileState>;
Parameters
Parameter | Type | Description |
|---|---|---|
filePath | string |
Returns:
Promise<IWatchedFileState>