From d90856f9e66b30f9bd61bbc4931faf573da22740 Mon Sep 17 00:00:00 2001 From: Hiroki Miyaji Date: Sat, 9 Dec 2023 00:22:41 +0900 Subject: [PATCH] apiKey allow undefined and null --- packages/libs/src/checkApiKey.ts | 2 +- packages/ui/src/miro.ts | 2 +- packages/ui/src/notion.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/libs/src/checkApiKey.ts b/packages/libs/src/checkApiKey.ts index 331e4f4..1977b9c 100644 --- a/packages/libs/src/checkApiKey.ts +++ b/packages/libs/src/checkApiKey.ts @@ -1,7 +1,7 @@ export function checkApiKey( keyName: string, targetKey?: string, - alternativeKey?: string, + alternativeKey?: string | undefined | null, ): string { if (targetKey) { return targetKey; diff --git a/packages/ui/src/miro.ts b/packages/ui/src/miro.ts index 17752e3..d13ce0f 100644 --- a/packages/ui/src/miro.ts +++ b/packages/ui/src/miro.ts @@ -12,7 +12,7 @@ import { export type GenerateDandoriMiroCardsOptions = { boardId: Parameters[0]; isAppCard?: boolean; - apiKey?: string; + apiKey?: Parameters[2]; }; // miro settings diff --git a/packages/ui/src/notion.ts b/packages/ui/src/notion.ts index aca45b4..7026f9c 100644 --- a/packages/ui/src/notion.ts +++ b/packages/ui/src/notion.ts @@ -61,7 +61,7 @@ export type DatabasePropertiesMap = export type GenerateDandoriNotionPagesOptions = { databaseId: string; databasePropertiesMap?: DatabasePropertiesMap; - apiKey?: string; + apiKey?: Parameters[2]; }; const hasStatusProperty = (