There is a specific Query
type that contains the getBankAccounts
property:
export type Query = {
getBankAccounts: GetBankAccountsResponseOrUserInputRequest,
};
This property can return either a GetAccountsResponse
or a UserInputRequest
:
export type GetBankAccountsResponseOrUserInputRequest = GetAccountsResponse | UserInputRequest;
I am trying to extract only the response type of GetAccountsResponse
using
Pick<Query, "getBankAccounts">
.
Your assistance on this matter would be greatly appreciated.