Skip to content

another 14 solution#48

Open
Ala-Ben-Aissia wants to merge 1 commit intototal-typescript:mainfrom
Ala-Ben-Aissia:main
Open

another 14 solution#48
Ala-Ben-Aissia wants to merge 1 commit intototal-typescript:mainfrom
Ala-Ben-Aissia:main

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

Comments