( context: ToolPermissionContext, updates: PermissionUpdate[], )
| 194 | * @returns The updated permission context |
| 195 | */ |
| 196 | export function applyPermissionUpdates( |
| 197 | context: ToolPermissionContext, |
| 198 | updates: PermissionUpdate[], |
| 199 | ): ToolPermissionContext { |
| 200 | let updatedContext = context |
| 201 | for (const update of updates) { |
| 202 | updatedContext = applyPermissionUpdate(updatedContext, update) |
| 203 | } |
| 204 | |
| 205 | return updatedContext |
| 206 | } |
| 207 | |
| 208 | export function supportsPersistence( |
| 209 | destination: PermissionUpdateDestination, |
no test coverage detected