MCPcopy
hub / github.com/tsedio/tsed / Injectable

Function Injectable

packages/di/src/common/decorators/injectable.ts:42–50  ·  view source on GitHub ↗
(options: Partial<ProviderOpts> = {})

Source from the content-addressed store, hash-verified

40 * @decorator
41 */
42export function Injectable(options: Partial<ProviderOpts> = {}): ClassDecorator {
43 return (target: any) => {
44 const opts = {
45 ...options,
46 ...(options.token ? {useClass: target} : {token: target})
47 };
48 injectable(opts.token, opts);
49 };
50}

Callers 15

Accounts.tsFile · 0.90
OidcProvider.tsFile · 0.90
AccountsMockClass · 0.90
OidcPolicy.tsFile · 0.90
OidcJwks.tsFile · 0.90
OidcAdapters.tsFile · 0.90
UsersRepository.tsFile · 0.90
ProtocolFunction · 0.90
TemporalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected