ReferenceMain entryFunctions
importOptional()
function importOptional<T>(moduleName): Promise<T>;Defined in: packages/transports/src/optional-import.ts:21
Import an optional dependency from the library or, failing that, from the application's node_modules; throws MissingDependencyError when neither has it.
Type Parameters
T
T
Parameters
moduleName
string
Package to import
Returns
Promise<T>