File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
frontend/src/pages/projects/screens/detail/connections Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ import { useInferenceServicesForConnection } from '#~/pages/projects/useInferenc
1212import { PersistentVolumeClaimKind } from '#~/k8sTypes' ;
1313import { isModelStorage } from '#~/pages/projects/screens/detail/storage/utils' ;
1414import { useIsAreaAvailable , SupportedArea } from '#~/concepts/areas/index' ;
15+ import { EitherNotBoth } from '#~/typeHelpers' ;
1516
16- export type ConnectedResourcesProps =
17- | { connection : Connection ; pvc ?: undefined }
18- | { connection ?: undefined ; pvc : PersistentVolumeClaimKind } ;
17+ export type ConnectedResourcesProps = EitherNotBoth <
18+ { connection : Connection } ,
19+ { pvc : PersistentVolumeClaimKind }
20+ > ;
1921
2022const ConnectedResources : React . FC < ConnectedResourcesProps > = ( { connection, pvc } ) => {
2123 const { notebooks : connectedNotebooks , loaded : notebooksLoaded } = useRelatedNotebooks (
You can’t perform that action at this time.
0 commit comments