@tempots/dom
makeProviderMark() function
Creates a unique symbol that can be used as a provider mark for a specific type T
. The provider mark is used to identify the provider of a value of type T
in a dependency injection system.
Signature:
makeProviderMark: (identifier: string) => ProviderMark
Parameters
Parameter |
Type |
Description |
---|---|---|
identifier |
string |
A string that uniquely identifies the provider. |
Returns: ProviderMark
A unique symbol that can be used as a provider mark.