Skip to content

Rerun prettier/docs after prettier dependency update #7259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions common/api-review/auth.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface ActionCodeInfo {
multiFactorInfo?: MultiFactorInfo | null;
previousEmail?: string | null;
};
operation: typeof ActionCodeOperation[keyof typeof ActionCodeOperation];
operation: (typeof ActionCodeOperation)[keyof typeof ActionCodeOperation];
}

// @public
Expand Down Expand Up @@ -456,21 +456,21 @@ export function multiFactor(user: User): MultiFactorUser;

// @public
export interface MultiFactorAssertion {
readonly factorId: typeof FactorId[keyof typeof FactorId];
readonly factorId: (typeof FactorId)[keyof typeof FactorId];
}

// @public
export interface MultiFactorError extends AuthError {
readonly customData: AuthError['customData'] & {
readonly operationType: typeof OperationType[keyof typeof OperationType];
readonly operationType: (typeof OperationType)[keyof typeof OperationType];
};
}

// @public
export interface MultiFactorInfo {
readonly displayName?: string | null;
readonly enrollmentTime: string;
readonly factorId: typeof FactorId[keyof typeof FactorId];
readonly factorId: (typeof FactorId)[keyof typeof FactorId];
readonly uid: string;
}

Expand Down Expand Up @@ -844,7 +844,7 @@ export interface User extends UserInfo {

// @public
export interface UserCredential {
operationType: typeof OperationType[keyof typeof OperationType];
operationType: (typeof OperationType)[keyof typeof OperationType];
providerId: string | null;
user: User;
}
Expand Down
4 changes: 2 additions & 2 deletions common/api-review/storage.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export interface StorageReference {
}

// @public
export type StringFormat = typeof StringFormat[keyof typeof StringFormat];
export type StringFormat = (typeof StringFormat)[keyof typeof StringFormat];

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

// @internal
export type _TaskState = typeof _TaskState[keyof typeof _TaskState];
export type _TaskState = (typeof _TaskState)[keyof typeof _TaskState];

// @internal
export const _TaskState: {
Expand Down
4 changes: 2 additions & 2 deletions docs-devsite/auth.actioncodeinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface ActionCodeInfo
| Property | Type | Description |
| --- | --- | --- |
| [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. |
| [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. |
| [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. |

## ActionCodeInfo.data

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

```typescript
operation: typeof ActionCodeOperationMap[keyof typeof ActionCodeOperationMap];
operation: (typeof ActionCodeOperationMap)[keyof typeof ActionCodeOperationMap];
```
4 changes: 2 additions & 2 deletions docs-devsite/auth.multifactorassertion.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface MultiFactorAssertion

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

## MultiFactorAssertion.factorId

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

```typescript
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
```
4 changes: 2 additions & 2 deletions docs-devsite/auth.multifactorerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface MultiFactorError extends AuthError

| Property | Type | Description |
| --- | --- | --- |
| [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. |
| [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. |

## MultiFactorError.customData

Expand All @@ -35,7 +35,7 @@ Details about the MultiFactorError.

```typescript
readonly customData: AuthError['customData'] & {
readonly operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
readonly operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
};
```

Expand Down
4 changes: 2 additions & 2 deletions docs-devsite/auth.multifactorinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface MultiFactorInfo
| --- | --- | --- |
| [displayName](./auth.multifactorinfo.md#multifactorinfodisplayname) | string \| null | The user friendly name of the current second factor. |
| [enrollmentTime](./auth.multifactorinfo.md#multifactorinfoenrollmenttime) | string | The enrollment date of the second factor formatted as a UTC string. |
| [factorId](./auth.multifactorinfo.md#multifactorinfofactorid) | typeof [FactorIdMap](./auth.md#factorid)<!-- -->\[keyof typeof [FactorIdMap](./auth.md#factorid)<!-- -->\] | The identifier of the second factor. |
| [factorId](./auth.multifactorinfo.md#multifactorinfofactorid) | (typeof [FactorIdMap](./auth.md#factorid)<!-- -->)\[keyof typeof [FactorIdMap](./auth.md#factorid)<!-- -->\] | The identifier of the second factor. |
| [uid](./auth.multifactorinfo.md#multifactorinfouid) | string | The multi-factor enrollment ID. |

## MultiFactorInfo.displayName
Expand Down Expand Up @@ -54,7 +54,7 @@ The identifier of the second factor.
<b>Signature:</b>

```typescript
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
```

## MultiFactorInfo.uid
Expand Down
4 changes: 2 additions & 2 deletions docs-devsite/auth.usercredential.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface UserCredential

| Property | Type | Description |
| --- | --- | --- |
| [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). |
| [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). |
| [providerId](./auth.usercredential.md#usercredentialproviderid) | string \| null | The provider which was used to authenticate the user. |
| [user](./auth.usercredential.md#usercredentialuser) | [User](./auth.user.md#user_interface) | The user authenticated by this credential. |

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

```typescript
operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
```

## UserCredential.providerId
Expand Down
2 changes: 1 addition & 1 deletion docs-devsite/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ An enumeration of the possible string formats for upload.
<b>Signature:</b>

```typescript
export declare type StringFormat = typeof StringFormat[keyof typeof StringFormat];
export declare type StringFormat = (typeof StringFormat)[keyof typeof StringFormat];
```

## TaskEvent
Expand Down
3 changes: 2 additions & 1 deletion packages/auth/src/core/strategies/redirect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ describe('core/strategies/redirect', () => {
it('returns false if sessionStorage is permission denied', async () => {
_getInstance<PopupRedirectResolverInternal>(
resolver
)._redirectPersistence = ErroringUnavailablePersistence as unknown as Persistence;
)._redirectPersistence =
ErroringUnavailablePersistence as unknown as Persistence;
expect(
await _getAndClearPendingRedirectStatus(_getInstance(resolver), auth)
).to.be.false;
Expand Down
10 changes: 5 additions & 5 deletions packages/auth/src/model/public_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ export interface ActionCodeInfo {
/**
* The type of operation that generated the action code.
*/
operation: typeof ActionCodeOperationMap[keyof typeof ActionCodeOperationMap];
operation: (typeof ActionCodeOperationMap)[keyof typeof ActionCodeOperationMap];
}

/**
Expand Down Expand Up @@ -589,7 +589,7 @@ export interface ConfirmationResult {
*/
export interface MultiFactorAssertion {
/** The identifier of the second factor. */
readonly factorId: typeof FactorIdMap[keyof typeof FactorIdMap];
readonly factorId: (typeof FactorIdMap)[keyof typeof FactorIdMap];
}

/**
Expand Down Expand Up @@ -629,7 +629,7 @@ export interface MultiFactorError extends AuthError {
/**
* The type of operation (sign-in, linking, or re-authentication) that raised the error.
*/
readonly operationType: typeof OperationTypeMap[keyof typeof OperationTypeMap];
readonly operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
};
}

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

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

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/messaging/src/internals/idb-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('idb manager', () => {

describe('old DB migration', () => {
let migrateOldDatabaseStub: Stub<
typeof migrateOldDatabaseModule['migrateOldDatabase']
(typeof migrateOldDatabaseModule)['migrateOldDatabase']
>;

beforeEach(() => {
Expand Down
6 changes: 3 additions & 3 deletions packages/messaging/src/internals/token-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ import { getFakeTokenDetails } from '../testing/fakes/token-details';
describe('Token Manager', () => {
let tokenDetails: TokenDetails;
let messaging: MessagingService;
let requestGetTokenStub: Stub<typeof apiModule['requestGetToken']>;
let requestUpdateTokenStub: Stub<typeof apiModule['requestUpdateToken']>;
let requestDeleteTokenStub: Stub<typeof apiModule['requestDeleteToken']>;
let requestGetTokenStub: Stub<(typeof apiModule)['requestGetToken']>;
let requestUpdateTokenStub: Stub<(typeof apiModule)['requestUpdateToken']>;
let requestDeleteTokenStub: Stub<(typeof apiModule)['requestDeleteToken']>;

beforeEach(() => {
tokenDetails = getFakeTokenDetails();
Expand Down
4 changes: 2 additions & 2 deletions packages/messaging/src/listeners/sw-listeners.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ describe('SwController', () => {
// eslint-disable-next-line @typescript-eslint/ban-types
let eventListenerMap: Map<string, Function>;
let messaging: MessagingService;
let getTokenStub: Stub<typeof tokenManagementModule['getTokenInternal']>;
let getTokenStub: Stub<(typeof tokenManagementModule)['getTokenInternal']>;
let deleteTokenStub: Stub<
typeof tokenManagementModule['deleteTokenInternal']
(typeof tokenManagementModule)['deleteTokenInternal']
>;

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/src/implementation/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { decodeBase64 } from '../platform/base64';
* An enumeration of the possible string formats for upload.
* @public
*/
export type StringFormat = typeof StringFormat[keyof typeof StringFormat];
export type StringFormat = (typeof StringFormat)[keyof typeof StringFormat];
/**
* An enumeration of the possible string formats for upload.
* @public
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/src/implementation/taskenums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const enum InternalTaskState {
* Represents the current state of a running upload.
* @internal
*/
export type TaskState = typeof TaskState[keyof typeof TaskState];
export type TaskState = (typeof TaskState)[keyof typeof TaskState];

// type keys = keyof TaskState
/**
Expand Down
2 changes: 1 addition & 1 deletion scripts/format/prettier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function doPrettier(changedFiles?: string[]) {
chalk`{green Validating ${changedFiles.length} files with Prettier}`
);
} else {
prettierArgs.push('{,!(node_modules)/}**/*.{js,ts}');
prettierArgs.push('{,!(node_modules)}/**/*.{js,ts}');
console.log(chalk`{green Validating all .js and .ts files with Prettier}`);
}

Expand Down