TestWatcher.d.ts 608 B

1234567891011121314151617181920212223
  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. */
  7. import emittery = require('emittery');
  8. declare type State = {
  9. interrupted: boolean;
  10. };
  11. export 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. }
  23. export {};