devToolsMiddleware.d.ts 603 B

12345678910111213141516
  1. /// <reference types="node" />
  2. /**
  3. * Copyright (c) Facebook, Inc. and its affiliates.
  4. *
  5. * This source code is licensed under the MIT license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. import http from 'http';
  9. declare type LaunchDevToolsOptions = {
  10. host?: string;
  11. port: number;
  12. watchFolders: ReadonlyArray<string>;
  13. };
  14. export default function getDevToolsMiddleware(options: LaunchDevToolsOptions, isDebuggerConnected: () => boolean): (_req: http.IncomingMessage, res: http.ServerResponse) => void;
  15. export {};
  16. //# sourceMappingURL=devToolsMiddleware.d.ts.map