Aligned jsdoc and inferred function type on UmbCurrentUserContext (#19642)

Aligned jsdoc and inferred function type on UmbCurrentUserContext.
This commit is contained in:
Andy Butland
2025-06-30 18:52:25 +02:00
committed by GitHub
parent 3e99c2f69d
commit cdc62d3020

View File

@@ -196,9 +196,9 @@ export class UmbCurrentUserContext extends UmbContextBase {
/**
* Get the permissions for the current user
* @returns {Array<DocumentPermissionPresentationModel | UnknownTypePermissionPresentationModel> | undefined} The permissions for the current user
* @returns {unknown[] | undefined} The permissions for the current user
*/
getPermissions() {
getPermissions(): unknown[] | undefined {
return this.#currentUser.getValue()?.permissions;
}