Skip to content

Instantly share code, notes, and snippets.

@nebez
Last active August 17, 2018 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nebez/3f838a724f9165612e61f800b82f33b2 to your computer and use it in GitHub Desktop.
Save nebez/3f838a724f9165612e61f800b82f33b2 to your computer and use it in GitHub Desktop.
Make Express Great Again
import * as express from 'express';
declare module 'express' {
interface Request {
body: unknown;
cookies: Record<string, unknown>;
params: Record<string, unknown>;
query: Record<string, unknown>;
route: Record<string, unknown>;
signedCookies: Record<string, unknown>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment