[web] Add some types for existing capabilities and PermissionController (#27048)

* Add types on existing Capabilities code

* Add ts-expect-error comments

* Minor code changes to satisfy types

* Remove ts-check because of unrelated errors

* Remove some ts-expect-error comments

* Revert "Remove some ts-expect-error comments"

This reverts commit 76cc0a073710eecf4f8b88f8579405838607f4d5.

* Remove the `@ts-check`s for now

It looks like typescript is somewhat flaky. We can re-enable this later

* Remove the `@ts-expect-error`s

* Remove return type

GitOrigin-RevId: 57bbd370654592c0662047e72e61f91bf38e0949
This commit is contained in:
Antoine Clausse
2025-07-15 08:05:29 +00:00
committed by Copybot
parent c20c17b68e
commit 4c03ebe4ee
3 changed files with 61 additions and 26 deletions
+11
View File
@@ -0,0 +1,11 @@
export type Capability =
| 'add-secondary-email'
| 'change-password'
| 'chat'
| 'delete-own-account'
| 'dropbox'
| 'endorse-email'
| 'join-subscription'
| 'leave-group-subscription'
| 'start-subscription'
| 'use-ai'