NoInfer<T>
There's a TypeScript utility type since version 5.4 for this very use case.
async function get<U>(url: string): Promise<NoInfer<U>> { return getUrl<U>(url); }