method CircularDetector.prototype.enter
CircularDetector.prototype.enter(token: string): void

Marks a token as currently being resolved.

Parameters

token: string

The token entering resolution

Return Type

void

Throws

Error

If the token is already in the resolution chain

Usage

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