Update src/services/BaseService.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
2c15a7ecfa
commit
d4e84b20ac
1 changed files with 1 additions and 1 deletions
|
|
@ -117,5 +117,5 @@ export interface ServiceWithDependencies {
|
|||
* Helper to check if a service has dependencies
|
||||
*/
|
||||
export function hasDependencies(service: any): service is ServiceWithDependencies {
|
||||
return typeof service.getDependencies === 'function';
|
||||
return !!service && typeof service.getDependencies === 'function';
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue