最佳答案
正如 Kamil 在此 issue 中所写:
it's impossible
在此issue ,他给出了以下解释:
because it could break too many existing codebases
当然,您始终可以创建自己的 custom decorators它也适用于任何类方法,以在提供程序上启用面向方面的编程。
关于javascript - 是否可以拦截 Nest.js 中的提供者?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55729585/