-
Notifications
You must be signed in to change notification settings - Fork 955
Closed
Closed
Copy link
Labels
Description
- Operating System version: macOS
- Browser version: NA
- Firebase SDK version: 9.8.0
- Firebase Product: auth
[REQUIRED] Describe the problem
The TypeScript typings of version 9.8.0 are incorrect. When compiling against them, I get the error
Error: node_modules/@firebase/auth/dist/auth-public.d.ts:3137:22 - error TS2304: Cannot find name 'PhoneOrOauthTokenResponse'.
3137 _tokenResponse?: PhoneOrOauthTokenResponse;
~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/@firebase/auth/dist/auth-public.d.ts:3429:11 - error TS2304: Cannot find name 'UserInternal'.
3429 user: UserInternal;
~~~~~~~~~~~~
And indeed, if we look into the referenced file, we find, at line 2440:
/* Excluded from this release type: PhoneOrOauthTokenResponse */
So the type PhoneOrOauthTokenResponse has been commented out, but it's used at line 3137:
declare interface TaggedWithTokenResponse {
_tokenResponse?: PhoneOrOauthTokenResponse;
}
The same issue exists with UserInternal. At line3468, we have
/* Excluded from this release type: UserInternal */
but at line 3429, we have
declare interface UserCredentialInternal extends UserCredential, TaggedWithTokenResponse {
user: UserInternal;
}
vandres, leo-fg, tskipa and elliotleelewis