F

getLoadedModule

Gives the module a lazy handle stands for once it has loaded, so a caller can keep the real object instead of reading through the proxy. It never loads a module.

function getLoadedModule<T>(handle: T): T | undefined

Parameters

NameTypeDescription
handleT

A lazy handle, or any other value.

Returns

T | undefined

The loaded module, undefined while the handle's module has not loaded, or handle itself when it is not a lazy handle.