I have function which returns promise with type which provided by generic
const api = (url: string) => Promise
For n