@@ -59,15 +59,15 @@ async function executeCommand(
5959
6060 switch ( cmd ) {
6161 case 'GetItem' :
62- return docClient . send ( new GetCommand ( input as Parameters < typeof GetCommand > [ 0 ] ) )
62+ return docClient . send ( new GetCommand ( input as ConstructorParameters < typeof GetCommand > [ 0 ] ) )
6363 case 'PutItem' :
64- return docClient . send ( new PutCommand ( input as Parameters < typeof PutCommand > [ 0 ] ) )
64+ return docClient . send ( new PutCommand ( input as ConstructorParameters < typeof PutCommand > [ 0 ] ) )
6565 case 'UpdateItem' :
66- return docClient . send ( new UpdateCommand ( input as Parameters < typeof UpdateCommand > [ 0 ] ) )
66+ return docClient . send ( new UpdateCommand ( input as ConstructorParameters < typeof UpdateCommand > [ 0 ] ) )
6767 case 'DeleteItem' :
68- return docClient . send ( new DeleteCommand ( input as Parameters < typeof DeleteCommand > [ 0 ] ) )
68+ return docClient . send ( new DeleteCommand ( input as ConstructorParameters < typeof DeleteCommand > [ 0 ] ) )
6969 case 'Query' :
70- return docClient . send ( new QueryCommand ( input as Parameters < typeof QueryCommand > [ 0 ] ) )
70+ return docClient . send ( new QueryCommand ( input as ConstructorParameters < typeof QueryCommand > [ 0 ] ) )
7171 default :
7272 throw new Error ( `Unknown command: ${ cmd } ` )
7373 }
@@ -107,7 +107,7 @@ async function parseRequest(request: Request, url: URL): Promise<AnalyticsReques
107107 params : { } , // Will be populated by router
108108 query : Object . fromEntries ( url . searchParams ) ,
109109 body,
110- headers : Object . fromEntries ( request . headers ) ,
110+ headers : Object . fromEntries ( request . headers as unknown as Iterable < [ string , string ] > ) ,
111111 ip : request . headers . get ( 'x-forwarded-for' )
112112 || request . headers . get ( 'cf-connecting-ip' )
113113 || undefined ,
@@ -256,7 +256,7 @@ Bun.serve({
256256 params : { } ,
257257 query : { } ,
258258 body : { } ,
259- headers : Object . fromEntries ( request . headers ) ,
259+ headers : Object . fromEntries ( request . headers as unknown as Iterable < [ string , string ] > ) ,
260260 } ) )
261261 }
262262
0 commit comments