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
The text was updated successfully, but these errors were encountered:
danielnixon
changed the title
no-unsafe-type-assertion: redundant thanks to satisfies
no-unsafe-type-assertion: redundant thanks to satisfies?
Mar 22, 2023
Even if satisfiesexists, people still use good ol' casting a lot of the time.
An equivalent rule "no cast (use satisfies)" that can still be configured as warning or disabled when too complex would still be needed imo to replace no-unsafe-type-assertion (maybe it already exists in a plugin)
See microsoft/TypeScript#47920 and https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#the-satisfies-operator
The text was updated successfully, but these errors were encountered: