Skip to content

Scope Example - JSDoc @scope Feature

scope-example/
├── README.md
├── ioc.config.json
├── demo.ts
├── container.gen.ts
└── services/
├── ISingletonService.ts
├── SingletonService.ts
├── ITransientService.ts
├── TransientService.ts
└── MixedService.ts
/**
* @scope singleton
*/
export class SingletonService implements ISingletonService {
// Implementation
}
/**
* @scope transient
*/
export class TransientService implements ITransientService {
// Implementation
}
{
"source": ".",
"output": "container.gen.ts",
"interface": "I[A-Z].*",
"exclude": [
"**/*.test.ts",
"**/*.spec.ts"
]
}