Type Alias: AsyncNamespacedServices<N, T>
AsyncNamespacedServices<
N,T> ={ [P in N]: AsyncNamespace }& { [K in keyof T as K extends string | number ? `${N}.${K}` : never]: T[K] }
Defined in: src/types.ts:708
Services added under a namespace of an async container: Name (an AsyncNamespace) and Name.key for each service.
Type Parameters
N
N extends string
T
T
Example
ts
type Billing = AsyncNamespacedServices<'Billing', { currency: string }>;
// { Billing: AsyncNamespace } & { 'Billing.currency': string }