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
mock.AnythingOfTypeArgument was marked deprecated by #1441. But because AnythingOfType is a factory function for AnythingOfTypeArgument and factory functions are shown nested under the type, this gets deprecated too.
This is problematic because the AnythingOfTypeArgument deprecation notice says to use AnythingOfType.
Running pkgsite locally shows this is fixed if AnythingOfType returns the unexported anythingOfTypeArgument, as it's a type alias that shouldn't be a breaking change.
Description
On pkgsite
mock.AnythingOfType
is marked as deprecated.mock.AnythingOfTypeArgument
was marked deprecated by #1441. But becauseAnythingOfType
is a factory function forAnythingOfTypeArgument
and factory functions are shown nested under the type, this gets deprecated too.This is problematic because the AnythingOfTypeArgument deprecation notice says to use AnythingOfType.
Running pkgsite locally shows this is fixed if
AnythingOfType
returns the unexportedanythingOfTypeArgument
, as it's a type alias that shouldn't be a breaking change.My VSCode doesn't reflect this:
Step To Reproduce
View public docs for mock package on pkgsite
Expected behavior
AnythingOfTypeArgument deprecated, AnythingOfType not.
Actual behavior
Both deprecated.
The text was updated successfully, but these errors were encountered: