CustomUser
TypeScript generic type variable not propagated throughout codebase
#1225
Labels
CustomUser
TypeScript generic type variable not propagated throughout codebase
#1225
Bug report
Describe the bug
AccountsServer
andAccountsPassword
are generic classes allowing aCustomUser
type variable to be passed, presumably to allow for typing extensions to the AccountsJSUser
type. However,User
instead ofCustomUser
is referenced in many other locations in the code (for example,EmailTemplateType
and allMongo
methods), leading to errors when attempting to access custom properties on extendedUser
implementations.Expected behavior
A type variable passed to
AccountsServer
andAccountsPassword
would be respected on their implementation methods.System information
Additional context
I suppose this could be considered a feature request but it just looks like generics are only partially implemented, so I'm submitting it as a bug.
The text was updated successfully, but these errors were encountered: