mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
581 B
TypeScript
20 lines
581 B
TypeScript
declare module "module" {
|
|
import { URL } from "url";
|
|
interface Module extends NodeJS.Module {}
|
|
class Module {
|
|
static runMain(): void;
|
|
static wrap(code: string): string;
|
|
|
|
/**
|
|
* @deprecated Deprecated since: v12.2.0. Please use createRequire() instead.
|
|
*/
|
|
static createRequireFromPath(path: string): NodeJS.Require;
|
|
static createRequire(path: string | URL): NodeJS.Require;
|
|
static builtinModules: string[];
|
|
|
|
static Module: typeof Module;
|
|
|
|
constructor(id: string, parent?: Module);
|
|
}
|
|
}
|