Aligned jsdoc and inferred function type on UmbCurrentUserContext (#19642)
Aligned jsdoc and inferred function type on UmbCurrentUserContext.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user