Interface: Module
Defined in: types/desktop-engine.d.ts:3535
A CommonJS module object
Properties
dirPath
ts
dirPath: string;Defined in: types/desktop-engine.d.ts:3547
Containing directory
exports
ts
exports: any;Defined in: types/desktop-engine.d.ts:3543
Exports object
ext
ts
ext: "js" | "json";Defined in: types/desktop-engine.d.ts:3541
File extension
filePath
ts
filePath: string;Defined in: types/desktop-engine.d.ts:3539
File path
id
ts
id: string;Defined in: types/desktop-engine.d.ts:3537
Module ID (absolute path without .js)
loaded
ts
loaded: boolean;Defined in: types/desktop-engine.d.ts:3545
Whether the module has loaded
Methods
load()
ts
load(): any;Defined in: types/desktop-engine.d.ts:3549
Loads the module contents
Returns
any
require()
ts
require(moduleId): any;Defined in: types/desktop-engine.d.ts:3551
Loads another module relative to this one
Parameters
| Parameter | Type |
|---|---|
moduleId | string |
Returns
any
