@@ -875,7 +875,7 @@ describe('resumable-upload', () => {
875875 delete metadataNoHeaders . contentType ;
876876 assert . deepStrictEqual ( reqOpts . data , metadataNoHeaders ) ;
877877 assert ( reqOpts . headers ) ;
878- const headers = reqOpts . headers as Record < string , any > ;
878+ const headers = reqOpts . headers as Record < string , string | undefined > ;
879879 const apiClientHeader = headers [ 'x-goog-api-client' ] ;
880880 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader as string ) ;
881881 assert . ok ( match ) ;
@@ -897,7 +897,10 @@ describe('resumable-upload', () => {
897897
898898 up . authClient . request = async ( combinedReqOpts : GaxiosOptions ) => {
899899 assert ( combinedReqOpts . headers ) ;
900- const headers = combinedReqOpts . headers as Record < string , any > ;
900+ const headers = combinedReqOpts . headers as Record <
901+ string ,
902+ string | undefined
903+ > ;
901904 const apiClientHeader = headers [ 'x-goog-api-client' ] ;
902905 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader as string ) ;
903906 assert . ok ( match ) ;
@@ -929,7 +932,10 @@ describe('resumable-upload', () => {
929932
930933 up . authClient . request = async ( combinedReqOpts : GaxiosOptions ) => {
931934 assert ( combinedReqOpts . headers ) ;
932- const headers = combinedReqOpts . headers as Record < string , any > ;
935+ const headers = combinedReqOpts . headers as Record <
936+ string ,
937+ string | undefined
938+ > ;
933939 const apiClientHeader = headers [ 'x-goog-api-client' ] ;
934940 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader as string ) ;
935941 assert . ok ( match ) ;
@@ -957,7 +963,10 @@ describe('resumable-upload', () => {
957963
958964 up . authClient . request = async ( combinedReqOpts : GaxiosOptions ) => {
959965 assert ( combinedReqOpts . headers ) ;
960- const headers = combinedReqOpts . headers as Record < string , any > ;
966+ const headers = combinedReqOpts . headers as Record <
967+ string ,
968+ string | undefined
969+ > ;
961970 const apiClientHeader = headers [ 'x-goog-api-client' ] ;
962971 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader as string ) ;
963972 assert . ok ( match ) ;
@@ -987,7 +996,7 @@ describe('resumable-upload', () => {
987996 up . makeRequest = async ( reqOpts : GaxiosOptions ) => {
988997 invocationCount ++ ;
989998 assert ( reqOpts . headers ) ;
990- const headers = reqOpts . headers as Record < string , any > ;
999+ const headers = reqOpts . headers as Record < string , string | undefined > ;
9911000 if ( invocationCount === 1 ) {
9921001 token1 = headers [ 'x-goog-gcs-idempotency-token' ] as string ;
9931002 const error = new GaxiosError (
@@ -1470,7 +1479,7 @@ describe('resumable-upload', () => {
14701479 await up . startUploading ( ) ;
14711480
14721481 assert ( capturedHeaders ) ;
1473- const headers = capturedHeaders as Record < string , any > ;
1482+ const headers = capturedHeaders as Record < string , string | undefined > ;
14741483 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
14751484 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
14761485 assert . ok ( match ) ;
@@ -1497,7 +1506,7 @@ describe('resumable-upload', () => {
14971506 await up . startUploading ( ) ;
14981507
14991508 assert ( capturedHeaders ) ;
1500- const headers = capturedHeaders as Record < string , any > ;
1509+ const headers = capturedHeaders as Record < string , string | undefined > ;
15011510 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
15021511 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
15031512 assert . ok ( match ) ;
@@ -1532,7 +1541,7 @@ describe('resumable-upload', () => {
15321541 await up . startUploading ( ) ;
15331542
15341543 assert ( capturedHeaders ) ;
1535- const headers = capturedHeaders as Record < string , any > ;
1544+ const headers = capturedHeaders as Record < string , string | undefined > ;
15361545 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
15371546 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
15381547 assert . ok ( match ) ;
@@ -1562,7 +1571,7 @@ describe('resumable-upload', () => {
15621571 await up . startUploading ( ) ;
15631572
15641573 assert ( capturedHeaders ) ;
1565- const headers = capturedHeaders as Record < string , any > ;
1574+ const headers = capturedHeaders as Record < string , string | undefined > ;
15661575 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
15671576 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
15681577 assert . ok ( match ) ;
@@ -1587,7 +1596,10 @@ describe('resumable-upload', () => {
15871596
15881597 up . makeRequestStream = async ( requestOptions : GaxiosOptions ) => {
15891598 invocationCount ++ ;
1590- const headers = requestOptions . headers as Record < string , any > ;
1599+ const headers = requestOptions . headers as Record <
1600+ string ,
1601+ string | undefined
1602+ > ;
15911603 const token = headers [ 'x-goog-gcs-idempotency-token' ] as string ;
15921604 if ( invocationCount === 1 ) {
15931605 token1 = token ;
@@ -1624,7 +1636,10 @@ describe('resumable-upload', () => {
16241636 const chunkInvocationIds : string [ ] = [ ] ;
16251637
16261638 up . makeRequestStream = async ( requestOptions : GaxiosOptions ) => {
1627- const headers = requestOptions . headers as Record < string , any > ;
1639+ const headers = requestOptions . headers as Record <
1640+ string ,
1641+ string | undefined
1642+ > ;
16281643 const token = headers [ 'x-goog-gcs-idempotency-token' ] as string ;
16291644 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
16301645 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
@@ -2235,7 +2250,7 @@ describe('resumable-upload', () => {
22352250 await up . checkUploadStatus ( ) ;
22362251
22372252 assert ( capturedHeaders ) ;
2238- const headers = capturedHeaders as Record < string , any > ;
2253+ const headers = capturedHeaders as Record < string , string | undefined > ;
22392254 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
22402255 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
22412256 assert . ok ( match ) ;
@@ -2259,7 +2274,7 @@ describe('resumable-upload', () => {
22592274 await up . checkUploadStatus ( ) ;
22602275
22612276 assert ( capturedHeaders ) ;
2262- const headers = capturedHeaders as Record < string , any > ;
2277+ const headers = capturedHeaders as Record < string , string | undefined > ;
22632278 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
22642279 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
22652280 assert . ok ( match ) ;
@@ -2288,7 +2303,7 @@ describe('resumable-upload', () => {
22882303 await up . checkUploadStatus ( ) ;
22892304
22902305 assert ( capturedHeaders ) ;
2291- const headers = capturedHeaders as Record < string , any > ;
2306+ const headers = capturedHeaders as Record < string , string | undefined > ;
22922307 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
22932308 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
22942309 assert . ok ( match ) ;
@@ -2315,7 +2330,7 @@ describe('resumable-upload', () => {
23152330 await up . checkUploadStatus ( ) ;
23162331
23172332 assert ( capturedHeaders ) ;
2318- const headers = capturedHeaders as Record < string , any > ;
2333+ const headers = capturedHeaders as Record < string , string | undefined > ;
23192334 const apiClientHeader = headers [ 'x-goog-api-client' ] as string ;
23202335 const match = X_GOOG_API_HEADER_REGEX . exec ( apiClientHeader ) ;
23212336 assert . ok ( match ) ;
@@ -2337,7 +2352,7 @@ describe('resumable-upload', () => {
23372352
23382353 up . makeRequest = async ( reqOpts : GaxiosOptions ) => {
23392354 invocationCount ++ ;
2340- const headers = reqOpts . headers as Record < string , any > ;
2355+ const headers = reqOpts . headers as Record < string , string | undefined > ;
23412356 const token = headers [ 'x-goog-gcs-idempotency-token' ] as string ;
23422357 if ( invocationCount === 1 ) {
23432358 token1 = token ;
0 commit comments