Skip to content

Conversation

Ala-Ben-Aissia
Copy link

Add an explicit type annotation to the arrow function in assertUserIsAdmin.

Yes, it’s a bit redundant and looks ugly, but TypeScript insists on its daily sacrifice 😅
After this, TypeScript will finally recognize the type as AdminUser without complaining.

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.

1 participant