@@ -13,7 +13,7 @@ import type Policy from '@src/types/onyx/Policy';
1313import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
1414
1515type ConnectionNameExceptNetSuite = Exclude < ConnectionName , typeof CONST . POLICY . CONNECTIONS . NAME . NETSUITE > ;
16- type ConnectionConfigType < T extends ConnectionNameExceptNetSuite > = T extends keyof Connections ? Connections [ T ] extends { config : infer C } ? C : never : never ;
16+ type ConnectionConfigType < T extends ConnectionNameExceptNetSuite > = T extends keyof Connections ? ( Connections [ T ] extends { config : infer C } ? C : never ) : never ;
1717
1818function removePolicyConnection ( policyID : string , connectionName : PolicyConnectionName ) {
1919 const optimisticData : OnyxUpdate [ ] = [
@@ -161,12 +161,10 @@ function syncConnection(policy: Policy | undefined, connectionName: PolicyConnec
161161 } ) ;
162162}
163163
164- function updateManyPolicyConnectionConfigs < TConnectionName extends ConnectionNameExceptNetSuite , TConfigUpdate extends Partial < ( Connections [ TConnectionName ] & { config : Record < string , unknown > } ) [ 'config' ] > > (
165- policyID : string | undefined ,
166- connectionName : TConnectionName ,
167- configUpdate : TConfigUpdate ,
168- configCurrentData : TConfigUpdate ,
169- ) {
164+ function updateManyPolicyConnectionConfigs <
165+ TConnectionName extends ConnectionNameExceptNetSuite ,
166+ TConfigUpdate extends Partial < ( Connections [ TConnectionName ] & { config : Record < string , unknown > } ) [ 'config' ] > ,
167+ > ( policyID : string | undefined , connectionName : TConnectionName , configUpdate : TConfigUpdate , configCurrentData : TConfigUpdate ) {
170168 if ( ! policyID ) {
171169 return ;
172170 }
0 commit comments