Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/node_modules/@types/node/module.d.ts')
-rw-r--r--assets/node_modules/@types/node/module.d.ts58
1 files changed, 58 insertions, 0 deletions
diff --git a/assets/node_modules/@types/node/module.d.ts b/assets/node_modules/@types/node/module.d.ts
new file mode 100644
index 0000000..2654f42
--- /dev/null
+++ b/assets/node_modules/@types/node/module.d.ts
@@ -0,0 +1,58 @@
+declare module "module" {
+ import { URL } from "url";
+ namespace Module {
+ /**
+ * Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports.
+ * It does not add or remove exported names from the ES Modules.
+ */
+ function syncBuiltinESMExports(): void;
+
+ /**
+ * @experimental
+ */
+ function findSourceMap(path: string, error?: Error): SourceMap;
+ interface SourceMapPayload {
+ file: string;
+ version: number;
+ sources: string[];
+ sourcesContent: string[];
+ names: string[];
+ mappings: string;
+ sourceRoot: string;
+ }
+
+ interface SourceMapping {
+ generatedLine: number;
+ generatedColumn: number;
+ originalSource: string;
+ originalLine: number;
+ originalColumn: number;
+ }
+
+ /**
+ * @experimental
+ */
+ class SourceMap {
+ readonly payload: SourceMapPayload;
+ constructor(payload: SourceMapPayload);
+ findEntry(line: number, column: number): SourceMapping;
+ }
+ }
+ interface Module extends NodeModule {}
+ class Module {
+ static runMain(): void;
+ static wrap(code: string): string;
+
+ /**
+ * @deprecated Deprecated since: v12.2.0. Please use createRequire() instead.
+ */
+ static createRequireFromPath(path: string): NodeRequire;
+ static createRequire(path: string | URL): NodeRequire;
+ static builtinModules: string[];
+
+ static Module: typeof Module;
+
+ constructor(id: string, parent?: Module);
+ }
+ export = Module;
+}