Type Alias: NamespaceServices<C, N>
NamespaceServices<
C,N> =ServicesInNamespace<ContainerServices<C>,N>
Defined in: src/types.ts:978
The services of namespace N of container type C, without the N. prefix.
Type Parameters
C
C
N
N extends keyof ContainerServices<C>
Example
ts
const app = new DIContainer().namespace('Billing', (b) => b.addInstance('currency', 'EUR'));
type Billing = NamespaceServices<typeof app, 'Billing'>; // { currency: string }