Summary: This diff stubs all node modules when running in the browser, so that, albeit with a lot of errors and without plugins, the UI loads in a browser. To be continued in the rest of this diff Reviewed By: antonk52 Differential Revision: D32665705 fbshipit-source-id: 4632e241f59c5b9712a41d01a26878afb01f69b5
18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
declare module NodeJS {
|
|
interface Global {
|
|
window: Window | undefined;
|
|
WebSocket: any;
|
|
fetch: any;
|
|
originalConsole: Console | undefined;
|
|
}
|
|
}
|