I have an auto generated type,
export type ReferralListByCustomerQuery = { referralListByCustomer?: Array<{ code: string, referredByID: string } | undefined> | undefined };
But I need a type of Item of Array:
type WhatINeed = { code: string, referredByID: string } | undefined
So, I know how to extract array type:
type IncludingArray = ReferralListByCustomerQuery[referralListByCustomer]
but question is how to extract Array Item. after google:
type OnlyItem = IncludingArray[number] is not working