Skip to content

Type issue in 8.12 conflicts with firebase-functions #880

Closed
@samtstern

Description

@samtstern

[READ] Step 1: Are you in the right place?

👍

[REQUIRED] Step 2: Describe your environment

  • Operating System version: all
  • Firebase SDK version: 8.12
  • Firebase Product: auth
  • Node.js version: 8/10
  • NPM version: all

[REQUIRED] Step 3: Describe the problem

When upgrading to 8.12 from 8.11 my build failed with:

##[error]node_modules/firebase-functions/lib/providers/auth.d.ts(14,22): error TS2420: Class 'UserRecordMetadata' incorrectly implements interface 'UserMetadata'.
  Property 'lastRefreshTime' is missing in type 'UserRecordMetadata' but required in type 'UserMetadata'.

The relevant line in firebase-functions is here:
https://github.com/firebase/firebase-functions/blob/87e75d717d5acf32d893e867078c531542d30c69/src/providers/auth.ts#L55

It seems that lastRefreshTime was added here:
#726

Maybe it should be optional not string | null

Steps to reproduce:

firebase/snippets-node#105

Relevant Code:

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions