Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 83eb57d

Browse files
committed
Update types
1 parent 94a0bd8 commit 83eb57d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,16 @@ export type APIMiddleware = {
209209
* An interface that aligns to the `Deno.RequestEvent`
210210
*/
211211
export interface APIContext extends Deno.RequestEvent {
212+
/** The data handled by middlewares. */
212213
readonly data: Map<string, any>
214+
/** An interface that aligns to the parts of the `Response` with helper methods */
213215
readonly response: APIResponse
216+
/** The router by the api routing. */
214217
readonly router: RouterURL
215218
}
216219

217220
/**
218-
* An interface that aligns to the parts of the `Response`.
221+
* An interface that aligns to the parts of the `Response` with helpers.
219222
*/
220223
export interface APIResponse {
221224
status: number

0 commit comments

Comments
 (0)