diff --git a/packages/cli/src/Interfaces.ts b/packages/cli/src/Interfaces.ts index 21a1a25bd0..2bc1bad45a 100644 --- a/packages/cli/src/Interfaces.ts +++ b/packages/cli/src/Interfaces.ts @@ -61,6 +61,12 @@ export interface IDatabaseCollections { Tag: Repository | null; } +type NonNullable = T extends null | undefined ? never : T; + +export type ExactDatabaseCollections = { + [P in keyof IDatabaseCollections]: NonNullable +}; + export interface IWebhookDb { workflowId: number | string; webhookPath: string;