mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Merge pull request #32347 from glenjamin/watchpack
watchpack: startTime is an optional parameter
This commit is contained in:
Vendored
+1
-1
@@ -23,7 +23,7 @@ declare class Watchpack extends EventEmitter {
|
||||
|
||||
constructor(options: Watchpack.WatchOptions);
|
||||
|
||||
watch(files: string[], directories: string[], startTime: number): void;
|
||||
watch(files: string[], directories: string[], startTime?: number): void;
|
||||
|
||||
close(): void;
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ import Watchpack = require('watchpack');
|
||||
const watch = new Watchpack({});
|
||||
|
||||
watch.watch(['test.js'], ['lib/'], 1000);
|
||||
watch.watch(['test.js'], ['lib/']);
|
||||
|
||||
let time: number;
|
||||
time = watch.getTimes()['test.js'];
|
||||
|
||||
Reference in New Issue
Block a user