Skip to content
Bunshi
GitHub

useMolecule

useMolecule<T>(mol, options?): T

Gets an instance of a provided value from a MoleculeOrInterface

Type parameters

Parameter
T

Parameters

ParameterTypeDescription
molMoleculeOrInterface< T >a molecule that will provided an instance
options?MoleculeScopeOptionsoptional overrides for explicit scoping

Returns

T

an instance provided by this molecule

Source

vue/useMolecule.ts:14