Skip to content

Commit dc28c39

Browse files
committed
fix ts
1 parent da948c2 commit dc28c39

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

src/libs/actions/Domain.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
import Onyx from 'react-native-onyx';
2-
import type {OnyxUpdate} from 'react-native-onyx';
3-
import type {ValueOf} from 'type-fest';
2+
import type { OnyxUpdate } from 'react-native-onyx';
3+
import type { ValueOf } from 'type-fest';
44
import * as API from '@libs/API';
5-
import type {AddAdminToDomainParams, DeleteDomainParams, RemoveDomainAdminParams, SetTechnicalContactEmailParams, ToggleConsolidatedDomainBillingParams} from '@libs/API/parameters';
6-
import {READ_COMMANDS, SIDE_EFFECT_REQUEST_COMMANDS, WRITE_COMMANDS} from '@libs/API/types';
7-
import {getMicroSecondOnyxErrorWithTranslationKey} from '@libs/ErrorUtils';
5+
import type { AddAdminToDomainParams, DeleteDomainParams, RemoveDomainAdminParams, SetTechnicalContactEmailParams, ToggleConsolidatedDomainBillingParams } from '@libs/API/parameters';
6+
import { READ_COMMANDS, SIDE_EFFECT_REQUEST_COMMANDS, WRITE_COMMANDS } from '@libs/API/types';
7+
import { getMicroSecondOnyxErrorWithTranslationKey } from '@libs/ErrorUtils';
88
import CONST from '@src/CONST';
99
import ONYXKEYS from '@src/ONYXKEYS';
10-
import type {Domain} from '@src/types/onyx';
11-
import type {BaseVacationDelegate} from '@src/types/onyx/VacationDelegate';
12-
import {isEmptyObject} from '@src/types/utils/EmptyObject';
10+
import type { Domain } from '@src/types/onyx';
11+
import type { BaseVacationDelegate } from '@src/types/onyx/VacationDelegate';
12+
import { isEmptyObject } from '@src/types/utils/EmptyObject';
1313
import type PrefixedRecord from '@src/types/utils/PrefixedRecord';
14-
import type {ScimTokenWithState} from './ScimToken/ScimTokenUtils';
15-
import {ScimTokenState} from './ScimToken/ScimTokenUtils';
14+
import type { ScimTokenWithState } from './ScimToken/ScimTokenUtils';
15+
import { ScimTokenState } from './ScimToken/ScimTokenUtils';
16+
1617

1718
/**
1819
* Fetches a validation code that the user is supposed to put in the domain's DNS records to verify it
@@ -791,7 +792,7 @@ function setDomainVacationDelegate(
791792
creator: string, // who is performing the action
792793
delegate: string, // who will be set as the vacation delegate
793794
previousDelegate: string, // who was the previous vacation delegate
794-
shouldOverridePolicyDiffWarning: boolean = false, // whether to force setting the vacation delegate despite a warning that they are not in our workspace
795+
shouldOverridePolicyDiffWarning= false, // whether to force setting the vacation delegate despite a warning that they are not in our workspace
795796
) {
796797
const optimisticData: Array<OnyxUpdate<typeof ONYXKEYS.COLLECTION.DOMAIN | typeof ONYXKEYS.COLLECTION.DOMAIN_PENDING_ACTIONS | typeof ONYXKEYS.COLLECTION.DOMAIN_ERRORS>> = [
797798
{
@@ -907,7 +908,7 @@ function deleteDomainVacationDelegate(vacationDelegate: BaseVacationDelegate, do
907908
creator: null,
908909
previousDelegate: previousDelegate ?? null,
909910
},
910-
} as PrefixedRecord<typeof CONST.DOMAIN.PRIVATE_VACATION_DELEGATE_PREFIX, BaseVacationDelegate>,
911+
} as unknown as PrefixedRecord<typeof CONST.DOMAIN.PRIVATE_VACATION_DELEGATE_PREFIX, BaseVacationDelegate>,
911912
},
912913
{
913914
onyxMethod: Onyx.METHOD.MERGE,

0 commit comments

Comments
 (0)