Skip to content

Commit a1df9f1

Browse files
committed
refactor: add exhausiveness check
1 parent 9892e5f commit a1df9f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/notebooks/deepnote/integrationTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ export enum IntegrationType {
1515
/**
1616
* Map Deepnote integration type strings to our IntegrationType enum
1717
*/
18-
export const DEEPNOTE_TO_INTEGRATION_TYPE: Record<string, IntegrationType> = {
18+
export const DEEPNOTE_TO_INTEGRATION_TYPE: { [type: string]: IntegrationType } = {
1919
pgsql: IntegrationType.Postgres,
2020
'big-query': IntegrationType.BigQuery
2121
};
2222

2323
/**
2424
* Map our IntegrationType enum to Deepnote integration type strings
2525
*/
26-
export const INTEGRATION_TYPE_TO_DEEPNOTE: Record<IntegrationType, string> = {
26+
export const INTEGRATION_TYPE_TO_DEEPNOTE: { [type in IntegrationType]: string } = {
2727
[IntegrationType.Postgres]: 'pgsql',
2828
[IntegrationType.BigQuery]: 'big-query'
2929
};

0 commit comments

Comments
 (0)