Skip to content

Commit

Permalink
feat: add optional init data to builders
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidsowardx committed Oct 13, 2023
1 parent 39022bd commit 1a1d1f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data-request/builders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -56,7 +56,7 @@ export const DataRequestBuilder: DataRequestBuilder = {

export type OneTimeDataRequestBuilder = {
accounts: () => OneTimeAccountsRequestBuilder
personaData: () => OneTimePersonaDataRequestBuilder
personaData: (input?: PersonaDataRequest) => OneTimePersonaDataRequestBuilder
}

export const OneTimeDataRequestBuilder: OneTimeDataRequestBuilder = {
Expand Down

0 comments on commit 1a1d1f3

Please sign in to comment.