Skip to content

vue-mvvm / core / ServiceKey

ServiceKey<T> ​

Can be used to register a service that lives not in a class.

Type Parameters ​

T ​

T

Constructors ​

Constructor ​

ts
new ServiceKey<T>(name): ServiceKey<T>;

Parameters ​

name ​

string

Returns ​

ServiceKey<T>

Properties ​

name ​

ts
readonly name: string;

Methods ​

[toPrimitive]() ​

ts
toPrimitive: string;

Returns ​

string