Firebase-js-sdk: Missing type declarations in Auth interface

Created on 19 Mar 2018  路  7Comments  路  Source: firebase/firebase-js-sdk

[REQUIRED] Describe your environment

  • Operating System version: Ubuntu 17.10
  • Firebase SDK version: 4.11.0
  • Firebase Product: Auth

[REQUIRED] Describe the problem

Steps to reproduce:

If you try to use the Auth function createUserAndRetrieveDataWithEmailAndPassword, Typescript complaints about it: Property 'createUserAndRetrieveDataWithEmailAndPassword' does not exist on type 'Auth'.

Relevant Code:

In firebase/index.d.ts the function createUserAndRetrieveDataWithEmailAndPassword should be defined in the Auth interface, as it is in auth-types/index.d.ts.

auth

Most helpful comment

The missing ones should be available now.

All 7 comments

The function signInAndRetrieveDataWithEmailAndPassword is also missing.

@bojeil-google Thanks, but shouldn't it be also defined in firebase/index.d.ts?

Ah, i had forgotten about this file. There are a bunch of missing APIs there. Ok, will look into adding the missing APIs.

@Splaktar I just added one function, but as bojeil-google said, there are more pending functions to add, like signInAndRetrieveDataWithEmailAndPassword.

The missing ones should be available now.

Was this page helpful?
0 / 5 - 0 ratings