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

Reports whether a scoped instance is cached.

Parameters

token: string

The capability token

Return Type

boolean

true if a scoped instance is cached

Usage

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