mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 17:57:36 +08:00
Rollup-plugin-terser dropped Node <10 and Rollup <2 support (https://github.com/TrySound/rollup-plugin-terser/releases/tag/v6.0.0) and upgraded to Terser 5 (https://github.com/TrySound/rollup-plugin-terser/releases/tag/v7.0.0) DISABLE_THIRD_PARTY_CHECK=NPM update R=jacktfranklin@chromium.org Change-Id: Ifa0085fe5daa052bdfea40720d1852549f4bf316 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2537956 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
/// <reference types="node" />
|
|
import { ChildMessage, OnCustomMessage, OnEnd, OnStart, WorkerInterface, WorkerOptions } from '../types';
|
|
export default class ExperimentalWorker implements WorkerInterface {
|
|
private _worker;
|
|
private _options;
|
|
private _request;
|
|
private _retries;
|
|
private _onProcessEnd;
|
|
private _onCustomMessage;
|
|
private _fakeStream;
|
|
private _stdout;
|
|
private _stderr;
|
|
private _exitPromise;
|
|
private _resolveExitPromise;
|
|
private _forceExited;
|
|
constructor(options: WorkerOptions);
|
|
initialize(): void;
|
|
private _shutdown;
|
|
private _onMessage;
|
|
private _onExit;
|
|
waitForExit(): Promise<void>;
|
|
forceExit(): void;
|
|
send(request: ChildMessage, onProcessStart: OnStart, onProcessEnd: OnEnd, onCustomMessage: OnCustomMessage): void;
|
|
getWorkerId(): number;
|
|
getStdout(): NodeJS.ReadableStream | null;
|
|
getStderr(): NodeJS.ReadableStream | null;
|
|
private _getFakeStream;
|
|
}
|