aboutsummaryrefslogtreecommitdiff
path: root/src/cors/index.d.ts
diff options
context:
space:
mode:
authorTom Harley2018-04-20 15:15:46 +0100
committerTom Harley2018-04-20 15:16:25 +0100
commit8d0293af5592402448769451f85ce666ed407cb4 (patch)
tree95e19e5d09b46c5a509f2c5f58fc57f7956168be /src/cors/index.d.ts
parentreduced # of failing tests (diff)
downloadmedicine-8d0293af5592402448769451f85ce666ed407cb4.tar.gz
medicine-8d0293af5592402448769451f85ce666ed407cb4.zip

Finalise CORS support with package corser

Diffstat (limited to 'src/cors/index.d.ts')
-rw-r--r--src/cors/index.d.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cors/index.d.ts b/src/cors/index.d.ts
new file mode 100644
index 0000000..81da9d4
--- /dev/null
+++ b/src/cors/index.d.ts
@@ -0,0 +1,3 @@
+import { NextFunction, Request, Response } from 'express';
+export const cors: () => (req: Request, res: Response, next: NextFunction) =>
+ void;