Narrows an arbitrary module object to ILaunchDarklyModule.
ILaunchDarklyModule
Pure and synchronous, so the provider's construction path is unit-testable with a fake module and never needs the real package installed.
The module to adapt, typically the result of import('@launchdarkly/node-server-sdk')
import('@launchdarkly/node-server-sdk')
The adapted module facade
When module is not an object, or exposes no callable init
module
init
0.2.0
Narrows an arbitrary module object to
ILaunchDarklyModule.Pure and synchronous, so the provider's construction path is unit-testable with a fake module and never needs the real package installed.