-
-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(types): Add DefaultEnv for zero runtime factory with interface m…
…erging
- Loading branch information
Showing
24 changed files
with
259 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @module | ||
* AWS Lambda Adapter for Hono. Invoked by ALB Event. | ||
*/ | ||
|
||
export { handle, streamHandle } from './handler' | ||
export type { APIGatewayProxyResult, ALBProxyEvent } from './handler' | ||
export type { ALBRequestContext, LambdaContext } from './types' | ||
|
||
import type { ALBProxyEvent } from './handler' | ||
import type { LambdaContext } from './types' | ||
|
||
declare module '../../types' { | ||
interface DefaultEnv { | ||
Bindings: DefaultBindings | ||
} | ||
|
||
interface DefaultBindings { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore On development, this line will raise an error because of interface merging. | ||
event: ALBProxyEvent | ||
lambdaContext: LambdaContext | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @module | ||
* AWS Lambda Adapter for Hono. Invoked by AWS API Gateway Proxy Event V2. | ||
*/ | ||
|
||
export { handle, streamHandle } from './handler' | ||
export type { APIGatewayProxyResult, APIGatewayProxyEventV2 } from './handler' | ||
export type { ApiGatewayRequestContext, LambdaContext } from './types' | ||
|
||
import type { APIGatewayProxyEventV2 } from './handler' | ||
import type { LambdaContext } from './types' | ||
|
||
declare module '../../types' { | ||
interface DefaultEnv { | ||
Bindings: DefaultBindings | ||
} | ||
|
||
interface DefaultBindings { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore On development, this line will raise an error because of interface merging. | ||
event: APIGatewayProxyEventV2 | ||
lambdaContext: LambdaContext | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @module | ||
* AWS Lambda Adapter for Hono. Invoked by AWS API Gateway Proxy Event. | ||
*/ | ||
|
||
export { handle, streamHandle } from './handler' | ||
export type { APIGatewayProxyResult, APIGatewayProxyEvent } from './handler' | ||
export type { ApiGatewayRequestContextV2, LambdaContext } from './types' | ||
|
||
import type { APIGatewayProxyEvent } from './handler' | ||
import type { LambdaContext } from './types' | ||
|
||
declare module '../../types' { | ||
interface DefaultEnv { | ||
Bindings: DefaultBindings | ||
} | ||
|
||
interface DefaultBindings { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore On development, this line will raise an error because of interface merging. | ||
event: APIGatewayProxyEvent | ||
lambdaContext: LambdaContext | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.