Skip to content

Commit

Permalink
apiKey allow undefined and null
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroki0525 committed Dec 8, 2023
1 parent 382b472 commit d90856f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/libs/src/checkApiKey.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function checkApiKey(
keyName: string,
targetKey?: string,
alternativeKey?: string,
alternativeKey?: string | undefined | null,
): string {
if (targetKey) {
return targetKey;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/miro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
export type GenerateDandoriMiroCardsOptions = {
boardId: Parameters<MiroApi["getBoard"]>[0];
isAppCard?: boolean;
apiKey?: string;
apiKey?: Parameters<typeof checkApiKey>[2];
};

// miro settings
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/notion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export type DatabasePropertiesMap =
export type GenerateDandoriNotionPagesOptions = {
databaseId: string;
databasePropertiesMap?: DatabasePropertiesMap;
apiKey?: string;
apiKey?: Parameters<typeof checkApiKey>[2];
};

const hasStatusProperty = (
Expand Down

0 comments on commit d90856f

Please sign in to comment.