debuggerProxyServer.d.ts 668 B

12345678910111213141516171819202122
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  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. * @format
  8. */
  9. /// <reference types="node" />
  10. import ws from 'ws';
  11. import { Server as HttpServer } from 'http';
  12. import { Server as HttpsServer } from 'https';
  13. declare type Server = HttpServer | HttpsServer;
  14. declare function attachToServer(server: Server, path: string): {
  15. server: ws.Server;
  16. isDebuggerConnected(): boolean;
  17. };
  18. declare const _default: {
  19. attachToServer: typeof attachToServer;
  20. };
  21. export default _default;
  22. //# sourceMappingURL=debuggerProxyServer.d.ts.map