From 05f5743372639b4c356a99d34981754ed4b6985f Mon Sep 17 00:00:00 2001 From: John Levermore Date: Wed, 6 Nov 2024 14:40:07 +0000 Subject: [PATCH] fix: Ensure types allow optional function arguments to be omitted --- types/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 8e6e27d..52c12ca 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -9,7 +9,7 @@ export default class NordigenClient { constructor({ secretId, secretKey, baseUrl, }: { secretId: string; secretKey: string; - baseUrl: string; + baseUrl?: string; }); baseUrl: string; secretKey: string; @@ -87,13 +87,13 @@ export default class NordigenClient { initSession({ redirectUrl, institutionId, maxHistoricalDays, accessValidForDays, userLanguage, referenceId, ssn, redirectImmediate, accountSelection, }: { redirectUrl: string; institutionId: string; - referenceId: string; - maxHistoricalDays: number; - accessValidForDays: number; - userLanguage: string; - ssn: string; - redirectImmediate: boolean; - accountSelection: boolean; + referenceId?: string; + maxHistoricalDays?: number; + accessValidForDays?: number; + userLanguage?: string; + ssn?: string; + redirectImmediate?: boolean; + accountSelection?: boolean; }): Promise; #private; } @@ -102,4 +102,4 @@ import { AgreementApi } from "./api/index.js"; import { RequisitionsApi } from "./api/index.js"; import { AccountApi } from "./api/index.js"; import { HttpMethod } from "./httpMethod.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file +//# sourceMappingURL=index.d.ts.map