Skip to content

@epikodelabs/streamix


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

Function: createToken()

createToken<T>(name): Token<T>

Defined in: projects/libraries/streamix/src/lib/ioc/token.ts:22

Creates a new typed injection token.

Type Parameters

T

T

Parameters

name

string

Human-readable name used for debugging and error messages.

Returns

Token<T>

A unique token that can be used with a container.

Released under the GNU AGPL v3 or later.