Skip to content

Commit fdd968f

Browse files
authored
fix: Use object instead of Object in typings (#961)
* fix: Use object instead of Object in typings (#961)
1 parent 54a5834 commit fdd968f

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/auth.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ export namespace admin.auth {
13241324
* @return A promise fulfilled with a custom token for the
13251325
* provided `uid` and payload.
13261326
*/
1327-
createCustomToken(uid: string, developerClaims?: Object): Promise<string>;
1327+
createCustomToken(uid: string, developerClaims?: object): Promise<string>;
13281328

13291329
/**
13301330
* Creates a new user.
@@ -1513,7 +1513,7 @@ export namespace admin.auth {
15131513
* @return A promise that resolves when the operation completes
15141514
* successfully.
15151515
*/
1516-
setCustomUserClaims(uid: string, customUserClaims: Object | null): Promise<void>;
1516+
setCustomUserClaims(uid: string, customUserClaims: object | null): Promise<void>;
15171517

15181518
/**
15191519
* Revokes all refresh tokens for an existing user.

src/database.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -604,15 +604,15 @@ export namespace admin.database {
604604
* });
605605
* ```
606606
*
607-
* @param values Object containing multiple values.
607+
* @param values object containing multiple values.
608608
* @param onComplete An optional callback function that will
609609
* be called when synchronization to the server has completed. The
610610
* callback will be passed a single parameter: null for success, or an Error
611611
* object indicating a failure.
612612
* @return Resolves when synchronization to the
613613
* Database is complete.
614614
*/
615-
update(values: Object, onComplete?: (a: Error | null) => any): Promise<void>;
615+
update(values: object, onComplete?: (a: Error | null) => any): Promise<void>;
616616
}
617617

618618
type EventType = 'value' | 'child_added' | 'child_changed' | 'child_moved' | 'child_removed';
@@ -865,7 +865,7 @@ export namespace admin.database {
865865
off(
866866
eventType?: admin.database.EventType,
867867
callback?: (a: admin.database.DataSnapshot, b?: string | null) => any,
868-
context?: Object | null
868+
context?: object | null
869869
): void;
870870

871871
/**
@@ -987,8 +987,8 @@ export namespace admin.database {
987987
on(
988988
eventType: admin.database.EventType,
989989
callback: (a: admin.database.DataSnapshot, b?: string | null) => any,
990-
cancelCallbackOrContext?: ((a: Error) => any) | Object | null,
991-
context?: Object | null
990+
cancelCallbackOrContext?: ((a: Error) => any) | object | null,
991+
context?: object | null
992992
): (a: admin.database.DataSnapshot | null, b?: string) => any;
993993

994994
/**
@@ -1025,8 +1025,8 @@ export namespace admin.database {
10251025
once(
10261026
eventType: admin.database.EventType,
10271027
successCallback?: (a: admin.database.DataSnapshot, b?: string | null ) => any,
1028-
failureCallbackOrContext?: ((a: Error) => void) | Object | null,
1029-
context?: Object | null
1028+
failureCallbackOrContext?: ((a: Error) => void) | object | null,
1029+
context?: object | null
10301030
): Promise<admin.database.DataSnapshot>;
10311031

10321032
/**
@@ -1618,12 +1618,12 @@ export namespace admin.database {
16181618
* adaNameRef.update({ first: 'Ada', last: 'Lovelace' });
16191619
* ```
16201620
*
1621-
* @param values Object containing multiple values.
1621+
* @param values object containing multiple values.
16221622
* @param onComplete Callback called when write to server is
16231623
* complete.
16241624
* @return Resolves when update on server is complete.
16251625
*/
1626-
update(values: Object, onComplete?: (a: Error | null) => any): Promise<void>;
1626+
update(values: object, onComplete?: (a: Error | null) => any): Promise<void>;
16271627
}
16281628

16291629
/**

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ declare namespace admin {
149149
* [Authenticate with limited privileges](/docs/database/admin/start#authenticate-with-limited-privileges)
150150
* for detailed documentation and code samples.
151151
*/
152-
databaseAuthVariableOverride?: Object | null;
152+
databaseAuthVariableOverride?: object | null;
153153

154154
/**
155155
* The URL of the Realtime Database from which to read and write data.
@@ -737,7 +737,7 @@ declare namespace admin.credential {
737737
* @return A credential authenticated via the
738738
* provided service account that can be used to initialize an app.
739739
*/
740-
function refreshToken(refreshTokenPathOrObject: string | Object, httpAgent?: Agent): admin.credential.Credential;
740+
function refreshToken(refreshTokenPathOrObject: string | object, httpAgent?: Agent): admin.credential.Credential;
741741
}
742742

743743
declare namespace admin.database {

0 commit comments

Comments
 (0)