Saltearse al contenido
sern

single

single<T>(cb): () => T

@PURE

Type parameters

T

Parameters

cb

Returns

Function

Returns

T

Since

2.0.0. Creates a singleton object.

Source

src/core/ioc/dependency-injection.ts:11