You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, the following code will be considered Invalid:
constcustomValueProvider: Provider={provide: 'TOKEN',useValue: 'some-value'// ⚠️ provider is not of type "factory"}constcustomClassProvider: Provider={provide: AbstractClass,useClass: SomeClass// ⚠️ provider is not of type "factory"}
@tuxmachine I'm wondering what we could use to determine that an object is a provider, @tuxmachine 🤔 Maybe we should check for the explicit "Provider" type from Nest? Otherwise, I fear this might get some false-positives from other objects that are not providers
Description
We want to allow users to prefer one type of custom provider over the others. For instance, factory providers over value providers can significantly increase performance.
Acceptance Criteria
Given the options below:
Then, the following code will be considered Invalid:
And the following code is considered Valid:
The text was updated successfully, but these errors were encountered: