Skip to content

Make PermissionController unrestrictedMethods constructor arg readonly#1395

Merged
FrederikBolding merged 1 commit into
mainfrom
fb/permissioncontroller-expect-readonly-array
May 26, 2023
Merged

Make PermissionController unrestrictedMethods constructor arg readonly#1395
FrederikBolding merged 1 commit into
mainfrom
fb/permissioncontroller-expect-readonly-array

Conversation

@FrederikBolding
Copy link
Copy Markdown
Member

Description

In the extension we pass a frozen array to the PermissionController, but TypeScript complains that it is expecting a mutable array, since we haven't specified the array to be readonly. This PR fixes that.

This shouldn't change anything functionally, merely correcting a type error.

Changes

  • Changed: Make PermissionController unrestrictedMethods constructor arg readonly

@FrederikBolding FrederikBolding requested a review from a team as a code owner May 26, 2023 12:55
@FrederikBolding FrederikBolding merged commit 93c2031 into main May 26, 2023
@FrederikBolding FrederikBolding deleted the fb/permissioncontroller-expect-readonly-array branch May 26, 2023 13:04
Gudahtt added a commit that referenced this pull request May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants