<
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 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
>
Register a scope on an aggregate
Service
without creating a standalone class.
register = <
const function (type parameter) Scope in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>Scope extends string | import StoreScopeTagStoreScopeTag,
const function (type parameter) C in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>C extends import StoreContractValueStoreContractValue,
>(
scope: const Scope extends string | StoreScopeTagscope: function (type parameter) Scope in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>Scope,
contract: const C extends StoreContractValuecontract: function (type parameter) C in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>C,
): import RegisteredWithContractRegisteredWithContract<
import ScopeKeyOfScopeKeyOf<function (type parameter) Scope in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>Scope>,
function (type parameter) C in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>C["spec"],
function (type parameter) C in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>C,
function (type parameter) Scope in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>Scope extends import StoreScopeTagStoreScopeTag ? function (type parameter) Scope in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>Scope : undefined
> =>
import makeRegistrationmakeRegistration(scope: const Scope extends string | StoreScopeTagscope, contract: const C extends StoreContractValuecontract) as unknown as import RegisteredWithContractRegisteredWithContract<
import ScopeKeyOfScopeKeyOf<function (type parameter) Scope in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>Scope>,
function (type parameter) C in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>C["spec"],
function (type parameter) C in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>C,
function (type parameter) Scope in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>Scope extends import StoreScopeTagStoreScopeTag ? function (type parameter) Scope in <const Scope extends string | StoreScopeTag, const C extends StoreContractValue>(scope: Scope, contract: C): RegisteredWithContract<ScopeKeyOf<Scope>, C["spec"], C, Scope extends StoreScopeTag ? Scope : undefined>Scope : undefined
>;