From 1a1d1f33ad0ecddfa50abd64aa8764f0602766a3 Mon Sep 17 00:00:00 2001 From: Dawid Sowa Date: Fri, 13 Oct 2023 12:49:47 +0200 Subject: [PATCH] feat: add optional init data to builders --- src/data-request/builders/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data-request/builders/index.ts b/src/data-request/builders/index.ts index 8a086282..9763d609 100644 --- a/src/data-request/builders/index.ts +++ b/src/data-request/builders/index.ts @@ -42,8 +42,8 @@ export const config = (data: DataRequestState) => { export type DataRequestBuilder = { accounts: () => AccountsRequestBuilder - personaData: () => PersonaDataRequestBuilder - persona: () => PersonaRequestBuilder + personaData: (input?: PersonaDataRequest) => PersonaDataRequestBuilder + persona: (input?: PersonaRequest) => PersonaRequestBuilder config: (input: DataRequestState) => ConfigRequestBuilder } @@ -56,7 +56,7 @@ export const DataRequestBuilder: DataRequestBuilder = { export type OneTimeDataRequestBuilder = { accounts: () => OneTimeAccountsRequestBuilder - personaData: () => OneTimePersonaDataRequestBuilder + personaData: (input?: PersonaDataRequest) => OneTimePersonaDataRequestBuilder } export const OneTimeDataRequestBuilder: OneTimeDataRequestBuilder = {