@tempots/dom
DOMContext.getProvider() method
Retrieves a provider for the given provider mark.
Signature:
getProvider<T>(mark: ProviderMark<T>): T;
Parameters
Parameter |
Type |
Description |
---|---|---|
mark |
ProviderMark<T> |
The provider mark to retrieve the provider for. |
Returns: T
The provider for the given mark.
Exceptions
Throws ProviderNotFoundError
if the provider for the given mark is not found.