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:
Nate Sesti 2025-08-02 16:31:49 -07:00 • committed by GitHub
parent 2c15a7ecfa
commit d4e84b20ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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';
}