useMolecule
useMolecule<
T
>(mol
,options
?):T
Gets an instance of a provided value from a MoleculeOrInterface
Type parameters
Parameter |
---|
T |
Parameters
Parameter | Type | Description |
---|---|---|
mol | MoleculeOrInterface < T > | a molecule that will provided an instance |
options ? | MoleculeScopeOptions | optional overrides for explicit scoping |
Returns
T
an instance provided by this molecule