Skip to content

Commit cdc62d3

Browse files
authored
Aligned jsdoc and inferred function type on UmbCurrentUserContext (#19642)
Aligned jsdoc and inferred function type on UmbCurrentUserContext.
1 parent 3e99c2f commit cdc62d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Web.UI.Client/src/packages/user/current-user/current-user.context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ export class UmbCurrentUserContext extends UmbContextBase {
196196

197197
/**
198198
* Get the permissions for the current user
199-
* @returns {Array<DocumentPermissionPresentationModel | UnknownTypePermissionPresentationModel> | undefined} The permissions for the current user
199+
* @returns {unknown[] | undefined} The permissions for the current user
200200
*/
201-
getPermissions() {
201+
getPermissions(): unknown[] | undefined {
202202
return this.#currentUser.getValue()?.permissions;
203203
}
204204

0 commit comments

Comments
 (0)