UNPKG

608 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7import emittery = require('emittery');
8declare type State = {
9 interrupted: boolean;
10};
11export default class TestWatcher extends emittery<{
12 change: State;
13}> {
14 state: State;
15 private _isWatchMode;
16 constructor({ isWatchMode }: {
17 isWatchMode: boolean;
18 });
19 setState(state: State): Promise<void>;
20 isInterrupted(): boolean;
21 isWatchMode(): boolean;
22}
23export {};