Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / src/public-api / inject

Function: inject()

inject<T>(token): T

Defined in: projects/libraries/streamix/src/lib/atoms/scope.ts:287

Resolves a required service from the current scope's container.

Falls back to the global container when called outside of a scope.

Type Parameters

T

T

Parameters

token

Token<T>

Returns

T

Released under the GNU AGPL v3 or later.