File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
packages/compass-connections/src/components Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -63,18 +63,21 @@ const mapDispatch = {
6363 openSettingsModal,
6464} ;
6565
66- // TODO: surely there's a way of inferring these types?
67- type DispatchProps = {
68- connect : ( connectionInfo : ConnectionInfo ) => any ;
66+ type ConnectionModalProps = {
67+ isOpen : boolean ;
68+ initialConnectionInfo ?: ConnectionInfo ;
69+ connectionErrorMessage ?: string ;
70+ disableEditingConnectedConnection : boolean ;
71+ editingConnectionInfoId ?: ConnectionId ;
72+ isEditingNewConnection : boolean ;
73+ connect : ( connectionInfo : ConnectionInfo ) => Promise < void > ;
6974 disconnect : ( id : string ) => void ;
7075 cancelEditConnection : ( id : string ) => void ;
71- saveEditedConnectionInfo : ( connectionInfo : ConnectionInfo ) => any ;
72- saveAndConnect : ( connectionInfo : ConnectionInfo ) => any ;
73- openSettingsModal : ( tab ?: string ) => any ;
76+ saveEditedConnectionInfo : ( connectionInfo : ConnectionInfo ) => Promise < void > ;
77+ saveAndConnect : ( connectionInfo : ConnectionInfo ) => Promise < void > ;
78+ openSettingsModal : ( tab ?: string ) => void ;
7479} ;
7580
76- type ConnectionModalProps = ReturnType < typeof mapState > & DispatchProps ;
77-
7881const ConnectionModal : React . FunctionComponent < ConnectionModalProps > = ( {
7982 // pulling initialConnectionInfo out of props to help TypeScript know that it
8083 // is not undefined by the time we render ConnectionFormModal
You can’t perform that action at this time.
0 commit comments