Remove any
from PermissionController
types
#4237
Labels
PermissionController
Related to the PermissionController.
team-wallet-api-platform
team-wallet-framework
Following #4171,
any
is only used in a small number ofPermissionController
types. They are mostly, but not always used as constraints. We should eliminateany
from the following types:CaveatSpecificationBase
PermissionSpecificationBase
RestrictedMethodSpecificationConstraint
RestrictedMethod
permission type #4238For the
*SpecificationBase
types, I believe the solution is to genericize them such that TypeScript can determine whether a concrete specification is valid. The refactor necessary to accomplish this may not be terrible, but it's not trivial.The text was updated successfully, but these errors were encountered: