firebase-functions-test
firebase-functions-test copied to clipboard
Better types for auth.makeUserRecord
Description
Allowed partial typed UserRecord
object to be specified for parameter of auth.makeUserRecord
.
Code sample
N/A
Can anyone review and, if happy, merge this in please?
Bump @inlined & @taeold
I can’t remember why I removed toJSON
now :-/ I don’t think a simple Partial
will be enough though as it needs to recurse down to the sub objects (like it does at the moment with metadata
, etc.), otherwise they will need to be fully defined.
I wonder if we should define RecursivePartial
as demonstrated here (maybe in index.ts
) and then use that in UserRecord and others. What do you think about that?
Yeh that’s fine with me 👍