Skip to content

Class 'UserRecordMetadata' incorrectly implements interface 'UserMetadata'. #681

@lookfirst

Description

@lookfirst

Related issues

None that I know of.

[REQUIRED] Version info

node:

v14.1.0

firebase-functions:

3.6.1

firebase-tools:

8.2.0

[REQUIRED] Test case

tsc

[REQUIRED] Steps to reproduce

Just compiling my app with latest version.

[REQUIRED] Expected behavior

No error.

[REQUIRED] Actual behavior

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'.

14 export declare class UserRecordMetadata implements firebase.auth.UserMetadata {
                        ~~~~~~~~~~~~~~~~~~

  node_modules/firebase-admin/lib/auth.d.ts:28:5
    28     lastRefreshTime: string|null;
           ~~~~~~~~~~~~~~~
    'lastRefreshTime' is declared here.

Were you able to successfully deploy your functions?

tsconfig.json:

"skipLibCheck": true,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions