method ScopeManager.prototype.hasSingleton
ScopeManager.prototype.hasSingleton(token: string): boolean

Reports whether a singleton is cached.

Parameters

token: string

The capability token

Return Type

boolean

true if a singleton instance is cached

Usage

import { ScopeManager } from "di-plugin/src/index.ts";