gitbeaker
gitbeaker copied to clipboard
Users.current() should return UserExtendedSchema
Description
I would expect the Users.current()
function to return UserExtendedSchema
as opposed to the current return type UserSchema
. Is this expected?
Steps to reproduce
Just trying to use the Users.current()
function should show the issue.
Expected behaviour
I would expect the return type to be Promise<UserExtendedSchema | undefined>
Actual behaviour
Users.current()
returns Promise<UserSchema>
Possible fixes
I am no expert of this codebase but it looks like it would be as easy as changing the type in here. I can make a PR if that's what's needed. 🌻
This is gonna wait until i fix #1897
Gotcha, thanks for taking a look!
:rocket: Issue was released in 37.0.0
:rocket: