refactor: const Module = require('module') as NodeJS.ModuleInternal; (#38757)
Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
65901f4c6a
commit
e71a56d11e
8 changed files with 20 additions and 9 deletions
|
@ -7,7 +7,7 @@ import { closeAllWindows } from './lib/window-helpers';
|
|||
import * as childProcess from 'node:child_process';
|
||||
import { once } from 'node:events';
|
||||
|
||||
const Module = require('node:module');
|
||||
const Module = require('node:module') as NodeJS.ModuleInternal;
|
||||
|
||||
const nativeModulesEnabled = !process.env.ELECTRON_SKIP_NATIVE_MODULE_TESTS;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue