File tree Expand file tree Collapse file tree
packages/7715-permission-types/src/permissions/schema Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,8 +67,6 @@ const PERMISSION_SCHEMAS: PermissionSchemaRegistry = {
6767 'erc20-token-stream' : erc20TokenStreamSchema ,
6868 'erc20-token-allowance' : erc20TokenAllowanceSchema ,
6969 'token-approval-revocation' : tokenApprovalRevocationSchema ,
70- // Deprecated in favor of 'token-approval-revocation'; same rendering.
71- 'erc20-token-revocation' : tokenApprovalRevocationSchema ,
7270} ;
7371
7472/**
Original file line number Diff line number Diff line change @@ -163,8 +163,12 @@ export type PermissionSchemaEntry = {
163163 sections : SchemaSection [ ] ;
164164} ;
165165
166- /** Maps permission type strings to their schema entries. */
166+ /**
167+ * Maps permission type strings to their schema entries.
168+ * `erc20-token-revocation` is deprecated in favor of `token-approval-revocation`
169+ * and intentionally excluded; it renders as an unknown permission type.
170+ */
167171export type PermissionSchemaRegistry = Record <
168- PermissionType ,
172+ Exclude < PermissionType , 'erc20-token-revocation' > ,
169173 PermissionSchemaEntry
170174> ;
You can’t perform that action at this time.
0 commit comments