From 3cfb266458c7bc4d05625b436164915ed494dd64 Mon Sep 17 00:00:00 2001 From: Matej Matiasko Date: Fri, 10 Mar 2017 23:52:32 +0100 Subject: [PATCH] Make success callback possible - cors (#14849) --- cors/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cors/index.d.ts b/cors/index.d.ts index ecad80d187..6c1fc3e4c3 100644 --- a/cors/index.d.ts +++ b/cors/index.d.ts @@ -10,7 +10,7 @@ import express = require('express'); type CustomOrigin = ( requestOrigin: string, - callback: (err: Error, allow?: boolean) => void + callback: (err: Error | null, allow?: boolean) => void ) => void; declare namespace e {