firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

Directly initialize properties in UserMetadata

Open rsgowman opened this issue 5 years ago • 0 comments

Prompted by attempting to enable tsconfig options 'strictPropertyInitialization'.

The properties were being indirectly set via Object.defineProperty. Typescript isn't able to follow that. Setting the properties directly resolves it. (And also exposed some minor type errors.)

rsgowman avatar Mar 06 '20 17:03 rsgowman