@@ -238,7 +238,7 @@ function validateCreateEditRequest(request: any, uploadAccountRequest: boolean =
238238 // customAttributes should be stringified JSON with no blacklisted claims.
239239 // The payload should not exceed 1KB.
240240 if ( typeof request . customAttributes !== 'undefined' ) {
241- let developerClaims ;
241+ let developerClaims : object ;
242242 try {
243243 developerClaims = JSON . parse ( request . customAttributes ) ;
244244 } catch ( error ) {
@@ -247,7 +247,7 @@ function validateCreateEditRequest(request: any, uploadAccountRequest: boolean =
247247 // this field.
248248 throw new FirebaseAuthError ( AuthClientErrorCode . INVALID_CLAIMS , error . message ) ;
249249 }
250- const invalidClaims = [ ] ;
250+ const invalidClaims : string [ ] = [ ] ;
251251 // Check for any invalid claims.
252252 RESERVED_CLAIMS . forEach ( ( blacklistedClaim ) => {
253253 if ( developerClaims . hasOwnProperty ( blacklistedClaim ) ) {
@@ -286,7 +286,7 @@ function validateCreateEditRequest(request: any, uploadAccountRequest: boolean =
286286 ! validator . isArray ( request . providerUserInfo ) ) {
287287 throw new FirebaseAuthError ( AuthClientErrorCode . INVALID_PROVIDER_DATA ) ;
288288 } else if ( validator . isArray ( request . providerUserInfo ) ) {
289- request . providerUserInfo . forEach ( ( providerUserInfoEntry ) => {
289+ request . providerUserInfo . forEach ( ( providerUserInfoEntry : any ) => {
290290 validateProviderUserInfo ( providerUserInfoEntry ) ;
291291 } ) ;
292292 }
@@ -681,7 +681,7 @@ export class FirebaseAuthRequestHandler {
681681
682682 // Parameters that are deletable and their deleteAttribute names.
683683 // Use client facing names, photoURL instead of photoUrl.
684- const deletableParams = {
684+ const deletableParams : { [ key : string ] : string } = {
685685 displayName : 'DISPLAY_NAME' ,
686686 photoURL : 'PHOTO_URL' ,
687687 } ;
0 commit comments