Skip to content

Interface: RequireFunction() ​

Defined in: types/desktop-engine.d.ts:3529

The require function: resolves relative to the current module's directory; .js may be omitted and .json is supported; like Node, a missing file throws an Error with code "MODULE_NOT_FOUND"

ts
RequireFunction(moduleId): any;

Defined in: types/desktop-engine.d.ts:3531

Loads a module and returns its exports

Parameters ​

ParameterType
moduleIdstring

Returns ​

any

The SDK is released under the Apache License 2.0