Skip to main content

importPath() function

Signature:
export declare function importPath(path: string): Promise<any>;

Parameters

ParameterTypeDescription
pathstringAbsolute path to a module. It must not be a file URL or a relative path.
Returns:

Promise<any>