Skip to content

Commit

Permalink
Merge branch 'master' into gh-3072-await-import-expression
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 22, 2019
2 parents f95d9ea + 0314917 commit 052f395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/watch/index.ts
Expand Up @@ -28,7 +28,7 @@ export class Watcher {
private succeeded = false;
private tasks: Task[];

constructor(configs: GenericConfigObject[]) {
constructor(configs: GenericConfigObject[] | GenericConfigObject) {
this.emitter = new (class extends EventEmitter implements RollupWatcher {
close: () => void;
constructor(close: () => void) {
Expand Down Expand Up @@ -279,6 +279,6 @@ export class Task {
}
}

export default function watch(configs: GenericConfigObject[]): RollupWatcher {
export default function watch(configs: GenericConfigObject[] | GenericConfigObject): RollupWatcher {
return new Watcher(configs).emitter;
}

0 comments on commit 052f395

Please sign in to comment.