-
Notifications
You must be signed in to change notification settings - Fork 59.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32856 from github/repo-sync
Repo sync
- Loading branch information
Showing
5 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { Request } from 'express' | ||
|
||
// Throughout our codebase we "extend" the Request object by attaching | ||
// things to it. For example `req.context = { currentCategory: 'foo' }`. | ||
// This type aims to match all the custom things we do to requests | ||
// througout the codebase. | ||
export type ExtendedRequest = Request & { | ||
pagePath?: string | ||
context?: { | ||
currentCategory?: string | ||
} | ||
// Add more properties here as needed | ||
} |