all these changes

This commit is contained in:
Jake Kasper
2026-04-09 13:19:47 -05:00
parent e83a51a051
commit 65315f36d1
39102 changed files with 7932979 additions and 567 deletions

View File

@@ -0,0 +1,17 @@
import { GaxiosResponse } from 'gaxios';
import { GaxiosResponseWithHTTP2 } from './http2';
export type HeadersInit = ConstructorParameters<typeof Headers>[0];
/**
* A utility for converting potential {@link Headers `Headers`} objects to plain headers objects.
*
* @param headers any compatible `HeadersInit` (`Headers`, (string, string)[], {})
* @returns the headers in `Record<string, string>` form.
*/
export declare function headersToClassicHeaders<T extends Record<string, string>>(headers: HeadersInit): T;
/**
* marshall a GaxiosResponse into a library-friendly type.
*
* @param res the Gaxios Response
* @returns the GaxiosResponse with HTTP2-ready/compatible headers
*/
export declare function marshallGaxiosResponse<T extends GaxiosResponse>(res?: T): GaxiosResponseWithHTTP2;