21 lines
731 B
TypeScript
21 lines
731 B
TypeScript
// Copyright (c) 2026 Dominic Masters
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
/**
|
|
* Loads and executes another script file (relative to the asset root,
|
|
* or to the requiring file's own directory if path starts with "./" or
|
|
* "../"), returning its `module.exports`. Each resolved path is only
|
|
* executed once - subsequent require() calls for the same file return
|
|
* the cached exports.
|
|
*/
|
|
declare function require(path: string): any;
|
|
|
|
/**
|
|
* Only defined inside a file loaded via require() - not present in a
|
|
* top-level script executed directly. Set `module.exports` to whatever
|
|
* value require() of this file should return.
|
|
*/
|
|
declare const module: { exports: any };
|