We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f9ff06 commit 5f66353Copy full SHA for 5f66353
.gitignore
@@ -110,4 +110,7 @@ dist
110
docs/dist
111
docs/dist-ssr
112
docs/*.local
113
-docs/pages/README.md
+docs/pages/README.md
114
+
115
+# JetBrains tools
116
+.idea
src/withContent.ts
@@ -1,4 +1,8 @@
1
-import { IRequest } from './Router'
+import { IRequest, IRequestStrict } from './Router'
2
3
+export type HasContent<ContentType> = {
4
+ content: ContentType,
5
+} & IRequestStrict
6
7
// withContent - embeds any request body as request.content
8
export const withContent = async (request: IRequest): Promise<void> => {
0 commit comments