Hyperlinkv0.8.0-beta.28

Store

Store.registerconstsrc/Store.ts:1619
<
  const Scope extends string | StoreScopeTag,
  const C extends StoreContractValue
>(
  scope: Scope,
  contract: C
): RegisteredWithContract<
  ScopeKeyOf<Scope>,
  C["spec"],
  C,
  Scope extends StoreScopeTag ? Scope : undefined
>

Register a scope on an aggregate Service without creating a standalone class.

constructorsService
Source src/Store.ts:161918 lines
export const register = <
  const Scope extends string | StoreScopeTag,
  const C extends StoreContractValue,
>(
  scope: Scope,
  contract: C,
): RegisteredWithContract<
  ScopeKeyOf<Scope>,
  C["spec"],
  C,
  Scope extends StoreScopeTag ? Scope : undefined
> =>
  makeRegistration(scope, contract) as unknown as RegisteredWithContract<
    ScopeKeyOf<Scope>,
    C["spec"],
    C,
    Scope extends StoreScopeTag ? Scope : undefined
  >;