Skip to content

Commit afe8414

Browse files
authored
Merge 48ced74 into 510c9b5
2 parents 510c9b5 + 48ced74 commit afe8414

File tree

16 files changed

+34
-33
lines changed

16 files changed

+34
-33
lines changed

common/api-review/auth.api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface ActionCodeInfo {
2020
multiFactorInfo?: MultiFactorInfo | null;
2121
previousEmail?: string | null;
2222
};
23-
operation: typeof ActionCodeOperation[keyof typeof ActionCodeOperation];
23+
operation: (typeof ActionCodeOperation)[keyof typeof ActionCodeOperation];
2424
}
2525

2626
// @public
@@ -456,21 +456,21 @@ export function multiFactor(user: User): MultiFactorUser;
456456

457457
// @public
458458
export interface MultiFactorAssertion {
459-
readonly factorId: typeof FactorId[keyof typeof FactorId];
459+
readonly factorId: (typeof FactorId)[keyof typeof FactorId];
460460
}
461461

462462
// @public
463463
export interface MultiFactorError extends AuthError {
464464
readonly customData: AuthError['customData'] & {
465-
readonly operationType: typeof OperationType[keyof typeof OperationType];
465+
readonly operationType: (typeof OperationType)[keyof typeof OperationType];
466466
};
467467
}
468468

469469
// @public
470470
export interface MultiFactorInfo {
471471
readonly displayName?: string | null;
472472
readonly enrollmentTime: string;
473-
readonly factorId: typeof FactorId[keyof typeof FactorId];
473+
readonly factorId: (typeof FactorId)[keyof typeof FactorId];
474474
readonly uid: string;
475475
}
476476

@@ -844,7 +844,7 @@ export interface User extends UserInfo {
844844

845845
// @public
846846
export interface UserCredential {
847-
operationType: typeof OperationType[keyof typeof OperationType];
847+
operationType: (typeof OperationType)[keyof typeof OperationType];
848848
providerId: string | null;
849849
user: User;
850850
}

common/api-review/storage.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export interface StorageReference {
304304
}
305305

306306
// @public
307-
export type StringFormat = typeof StringFormat[keyof typeof StringFormat];
307+
export type StringFormat = (typeof StringFormat)[keyof typeof StringFormat];
308308

309309
// @public
310310
export const StringFormat: {
@@ -329,7 +329,7 @@ export const _TaskEvent: {
329329
export type TaskState = 'running' | 'paused' | 'success' | 'canceled' | 'error';
330330

331331
// @internal
332-
export type _TaskState = typeof _TaskState[keyof typeof _TaskState];
332+
export type _TaskState = (typeof _TaskState)[keyof typeof _TaskState];
333333

334334
// @internal
335335
export const _TaskState: {

docs-devsite/auth.actioncodeinfo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface ActionCodeInfo
2323
| Property | Type | Description |
2424
| --- | --- | --- |
2525
| [data](./auth.actioncodeinfo.md#actioncodeinfodata) | { email?: string \| null; multiFactorInfo?: [MultiFactorInfo](./auth.multifactorinfo.md#multifactorinfo_interface) \| null; previousEmail?: string \| null; } | The data associated with the action code. |
26-
| [operation](./auth.actioncodeinfo.md#actioncodeinfooperation) | typeof [ActionCodeOperationMap](./auth.md#actioncodeoperation)<!-- -->\[keyof typeof [ActionCodeOperationMap](./auth.md#actioncodeoperation)<!-- -->\] | The type of operation that generated the action code. |
26+
| [operation](./auth.actioncodeinfo.md#actioncodeinfooperation) | (typeof [ActionCodeOperationMap](./auth.md#actioncodeoperation)<!-- -->)\[keyof typeof [ActionCodeOperationMap](./auth.md#actioncodeoperation)<!-- -->\] | The type of operation that generated the action code. |
2727

2828
## ActionCodeInfo.data
2929

@@ -54,5 +54,5 @@ The type of operation that generated the action code.
5454
<b>Signature:</b>
5555

5656
```typescript
57-
operation: typeof ActionCodeOperationMap[keyof typeof ActionCodeOperationMap];
57+
operation: (typeof ActionCodeOperationMap)[keyof typeof ActionCodeOperationMap];
5858
```

docs-devsite/auth.multifactorassertion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface MultiFactorAssertion
2424

2525
| Property | Type | Description |
2626
| --- | --- | --- |
27-
| [factorId](./auth.multifactorassertion.md#multifactorassertionfactorid) | typeof [FactorIdMap](./auth.md#factorid)<!-- -->\[keyof typeof [FactorIdMap](./auth.md#factorid)<!-- -->\] | The identifier of the second factor. |
27+
| [factorId](./auth.multifactorassertion.md#multifactorassertionfactorid) | (typeof [FactorIdMap](./auth.md#factorid)<!-- -->)\[keyof typeof [FactorIdMap](./auth.md#factorid)<!-- -->\] | The identifier of the second factor. |
2828

2929
## MultiFactorAssertion.factorId
3030

@@ -33,5 +33,5 @@ The identifier of the second factor.
3333
<b>Signature:</b>
3434

3535
```typescript
36-
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
36+
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
3737
```

docs-devsite/auth.multifactorerror.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface MultiFactorError extends AuthError
2525
2626
| Property | Type | Description |
2727
| --- | --- | --- |
28-
| [customData](./auth.multifactorerror.md#multifactorerrorcustomdata) | [AuthError](./auth.autherror.md#autherror_interface)<!-- -->\['customData'\] &amp; { readonly operationType: typeof [OperationTypeMap](./auth.md#operationtype)<!-- -->\[keyof typeof [OperationTypeMap](./auth.md#operationtype)<!-- -->\]; } | Details about the MultiFactorError. |
28+
| [customData](./auth.multifactorerror.md#multifactorerrorcustomdata) | [AuthError](./auth.autherror.md#autherror_interface)<!-- -->\['customData'\] &amp; { readonly operationType: (typeof [OperationTypeMap](./auth.md#operationtype)<!-- -->)\[keyof typeof [OperationTypeMap](./auth.md#operationtype)<!-- -->\]; } | Details about the MultiFactorError. |
2929
3030
## MultiFactorError.customData
3131
@@ -35,7 +35,7 @@ Details about the MultiFactorError.
3535
3636
```typescript
3737
readonly customData: AuthError['customData'] & {
38-
readonly operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
38+
readonly operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
3939
};
4040
```
4141

docs-devsite/auth.multifactorinfo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface MultiFactorInfo
2424
| --- | --- | --- |
2525
| [displayName](./auth.multifactorinfo.md#multifactorinfodisplayname) | string \| null | The user friendly name of the current second factor. |
2626
| [enrollmentTime](./auth.multifactorinfo.md#multifactorinfoenrollmenttime) | string | The enrollment date of the second factor formatted as a UTC string. |
27-
| [factorId](./auth.multifactorinfo.md#multifactorinfofactorid) | typeof [FactorIdMap](./auth.md#factorid)<!-- -->\[keyof typeof [FactorIdMap](./auth.md#factorid)<!-- -->\] | The identifier of the second factor. |
27+
| [factorId](./auth.multifactorinfo.md#multifactorinfofactorid) | (typeof [FactorIdMap](./auth.md#factorid)<!-- -->)\[keyof typeof [FactorIdMap](./auth.md#factorid)<!-- -->\] | The identifier of the second factor. |
2828
| [uid](./auth.multifactorinfo.md#multifactorinfouid) | string | The multi-factor enrollment ID. |
2929

3030
## MultiFactorInfo.displayName
@@ -54,7 +54,7 @@ The identifier of the second factor.
5454
<b>Signature:</b>
5555

5656
```typescript
57-
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
57+
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
5858
```
5959

6060
## MultiFactorInfo.uid

docs-devsite/auth.usercredential.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface UserCredential
2424

2525
| Property | Type | Description |
2626
| --- | --- | --- |
27-
| [operationType](./auth.usercredential.md#usercredentialoperationtype) | typeof [OperationTypeMap](./auth.md#operationtype)<!-- -->\[keyof typeof [OperationTypeMap](./auth.md#operationtype)<!-- -->\] | The type of operation which was used to authenticate the user (such as sign-in or link). |
27+
| [operationType](./auth.usercredential.md#usercredentialoperationtype) | (typeof [OperationTypeMap](./auth.md#operationtype)<!-- -->)\[keyof typeof [OperationTypeMap](./auth.md#operationtype)<!-- -->\] | The type of operation which was used to authenticate the user (such as sign-in or link). |
2828
| [providerId](./auth.usercredential.md#usercredentialproviderid) | string \| null | The provider which was used to authenticate the user. |
2929
| [user](./auth.usercredential.md#usercredentialuser) | [User](./auth.user.md#user_interface) | The user authenticated by this credential. |
3030

@@ -35,7 +35,7 @@ The type of operation which was used to authenticate the user (such as sign-in o
3535
<b>Signature:</b>
3636

3737
```typescript
38-
operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
38+
operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
3939
```
4040

4141
## UserCredential.providerId

docs-devsite/storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ An enumeration of the possible string formats for upload.
485485
<b>Signature:</b>
486486

487487
```typescript
488-
export declare type StringFormat = typeof StringFormat[keyof typeof StringFormat];
488+
export declare type StringFormat = (typeof StringFormat)[keyof typeof StringFormat];
489489
```
490490

491491
## TaskEvent

packages/auth/src/core/strategies/redirect.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ describe('core/strategies/redirect', () => {
238238
it('returns false if sessionStorage is permission denied', async () => {
239239
_getInstance<PopupRedirectResolverInternal>(
240240
resolver
241-
)._redirectPersistence = ErroringUnavailablePersistence as unknown as Persistence;
241+
)._redirectPersistence =
242+
ErroringUnavailablePersistence as unknown as Persistence;
242243
expect(
243244
await _getAndClearPendingRedirectStatus(_getInstance(resolver), auth)
244245
).to.be.false;

packages/auth/src/model/public_types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export interface ActionCodeInfo {
416416
/**
417417
* The type of operation that generated the action code.
418418
*/
419-
operation: typeof ActionCodeOperationMap[keyof typeof ActionCodeOperationMap];
419+
operation: (typeof ActionCodeOperationMap)[keyof typeof ActionCodeOperationMap];
420420
}
421421

422422
/**
@@ -589,7 +589,7 @@ export interface ConfirmationResult {
589589
*/
590590
export interface MultiFactorAssertion {
591591
/** The identifier of the second factor. */
592-
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
592+
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
593593
}
594594

595595
/**
@@ -629,7 +629,7 @@ export interface MultiFactorError extends AuthError {
629629
/**
630630
* The type of operation (sign-in, linking, or re-authentication) that raised the error.
631631
*/
632-
readonly operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
632+
readonly operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
633633
};
634634
}
635635

@@ -646,7 +646,7 @@ export interface MultiFactorInfo {
646646
/** The enrollment date of the second factor formatted as a UTC string. */
647647
readonly enrollmentTime: string;
648648
/** The identifier of the second factor. */
649-
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
649+
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
650650
}
651651

652652
/**
@@ -1049,7 +1049,7 @@ export interface UserCredential {
10491049
/**
10501050
* The type of operation which was used to authenticate the user (such as sign-in or link).
10511051
*/
1052-
operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
1052+
operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
10531053
}
10541054

10551055
/**

packages/messaging/src/internals/idb-manager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('idb manager', () => {
7272

7373
describe('old DB migration', () => {
7474
let migrateOldDatabaseStub: Stub<
75-
typeof migrateOldDatabaseModule['migrateOldDatabase']
75+
(typeof migrateOldDatabaseModule)['migrateOldDatabase']
7676
>;
7777

7878
beforeEach(() => {

packages/messaging/src/internals/token-manager.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ import { getFakeTokenDetails } from '../testing/fakes/token-details';
3939
describe('Token Manager', () => {
4040
let tokenDetails: TokenDetails;
4141
let messaging: MessagingService;
42-
let requestGetTokenStub: Stub<typeof apiModule['requestGetToken']>;
43-
let requestUpdateTokenStub: Stub<typeof apiModule['requestUpdateToken']>;
44-
let requestDeleteTokenStub: Stub<typeof apiModule['requestDeleteToken']>;
42+
let requestGetTokenStub: Stub<(typeof apiModule)['requestGetToken']>;
43+
let requestUpdateTokenStub: Stub<(typeof apiModule)['requestUpdateToken']>;
44+
let requestDeleteTokenStub: Stub<(typeof apiModule)['requestDeleteToken']>;
4545

4646
beforeEach(() => {
4747
tokenDetails = getFakeTokenDetails();

packages/messaging/src/listeners/sw-listeners.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ describe('SwController', () => {
9292
// eslint-disable-next-line @typescript-eslint/ban-types
9393
let eventListenerMap: Map<string, Function>;
9494
let messaging: MessagingService;
95-
let getTokenStub: Stub<typeof tokenManagementModule['getTokenInternal']>;
95+
let getTokenStub: Stub<(typeof tokenManagementModule)['getTokenInternal']>;
9696
let deleteTokenStub: Stub<
97-
typeof tokenManagementModule['deleteTokenInternal']
97+
(typeof tokenManagementModule)['deleteTokenInternal']
9898
>;
9999

100100
beforeEach(() => {

packages/storage/src/implementation/string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { decodeBase64 } from '../platform/base64';
2222
* An enumeration of the possible string formats for upload.
2323
* @public
2424
*/
25-
export type StringFormat = typeof StringFormat[keyof typeof StringFormat];
25+
export type StringFormat = (typeof StringFormat)[keyof typeof StringFormat];
2626
/**
2727
* An enumeration of the possible string formats for upload.
2828
* @public

packages/storage/src/implementation/taskenums.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const enum InternalTaskState {
6262
* Represents the current state of a running upload.
6363
* @internal
6464
*/
65-
export type TaskState = typeof TaskState[keyof typeof TaskState];
65+
export type TaskState = (typeof TaskState)[keyof typeof TaskState];
6666

6767
// type keys = keyof TaskState
6868
/**

scripts/format/prettier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function doPrettier(changedFiles?: string[]) {
7373
chalk`{green Validating ${changedFiles.length} files with Prettier}`
7474
);
7575
} else {
76-
prettierArgs.push('{,!(node_modules)/}**/*.{js,ts}');
76+
prettierArgs.push('{,!(node_modules)}/**/*.{js,ts}');
7777
console.log(chalk`{green Validating all .js and .ts files with Prettier}`);
7878
}
7979

0 commit comments

Comments
 (0)