Skip to content

Commit 61bae48

Browse files
committed
fix typecheck
1 parent e084373 commit 61bae48

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/notebooks/deepnote/integrations/integrationWebview.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import {
1111
INTEGRATION_TYPE_TO_DEEPNOTE,
1212
IntegrationConfig,
1313
IntegrationStatus,
14-
IntegrationWithStatus
14+
IntegrationWithStatus,
15+
RawIntegrationType
1516
} from '../../../platform/notebooks/deepnote/integrationTypes';
1617

1718
/**
@@ -312,7 +313,7 @@ export class IntegrationWebviewProvider implements IIntegrationWebviewProvider {
312313

313314
// Build the integrations list from current integrations
314315
const projectIntegrations: ProjectIntegration[] = Array.from(this.integrations.entries())
315-
.map(([id, integration]) => {
316+
.map(([id, integration]): ProjectIntegration | null => {
316317
// Get the integration type from config or integration metadata
317318
const type = integration.config?.type || integration.integrationType;
318319
if (!type) {
@@ -321,7 +322,7 @@ export class IntegrationWebviewProvider implements IIntegrationWebviewProvider {
321322
}
322323

323324
// Map to Deepnote integration type
324-
const deepnoteType = INTEGRATION_TYPE_TO_DEEPNOTE[type];
325+
const deepnoteType: RawIntegrationType | undefined = INTEGRATION_TYPE_TO_DEEPNOTE[type];
325326
if (!deepnoteType) {
326327
logger.warn(`IntegrationWebviewProvider: Cannot map type ${type} for integration ${id}, skipping`);
327328
return null;

0 commit comments

Comments
 (0)