Thrown when a service was registered with the wrong number of constructor arguments.
class Database { constructor(public logger: LoggerService);}// container.register(Database, [LoggerService]); // OK!container.register(Database, []); // Error: Database requires 1 argument Copy
class Database { constructor(public logger: LoggerService);}// container.register(Database, [LoggerService]); // OK!container.register(Database, []); // Error: Database requires 1 argument
Static
Optional
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Generated using TypeDoc
Thrown when a service was registered with the wrong number of constructor arguments.
Example