Skip to content

fix: Add explicit type annotations to createUserFn handler - #138

Open
sonali-hanchinaman wants to merge 1 commit into
LibreChat-AI:mainfrom
sonali-hanchinaman:fix/create-user-types
Open

fix: Add explicit type annotations to createUserFn handler#138
sonali-hanchinaman wants to merge 1 commit into
LibreChat-AI:mainfrom
sonali-hanchinaman:fix/create-user-types

Conversation

@sonali-hanchinaman

Copy link
Copy Markdown

TanStack Start's inputValidator requires explicit type annotation on handler's data parameter. This fixes the 'invalid input: expected object, received undefined' error when creating users via the admin panel.

Changes

  • Add explicit type annotations to createUserFn handler
  • Update return type import from TUser to AdminUserListItem

Enables user creation functionality in the admin panel.

TanStack Start's inputValidator requires explicit type annotation on handler's
data parameter. This fixes the 'invalid input: expected object, received undefined'
error when creating users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants