Skip to content

vue-mvvm / core / AsyncServiceKey

AsyncServiceKey<T>

Can be used to register a service that lives not in a class. Additionally, the factory function is defined as async.

Type Parameters

T

T

Constructors

Constructor

ts
new AsyncServiceKey<T>(name?): AsyncServiceKey<T>;

Parameters

name?

string

Returns

AsyncServiceKey<T>

Methods

[toPrimitive]()

ts
toPrimitive: string | AsyncServiceKey<T>;

Returns

string | AsyncServiceKey<T>