I am defining types to request data from an index and authoring the API in Typescript.
There are two performant ways to retrieve a chunk of data from the index server