From 1feb795761da5d40393cbf93e9138354a60c2f33 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 22 Jan 2019 21:54:03 +0200 Subject: [PATCH] typescript(translucid): noooooooooo Signed-off-by: prescientmoon --- typescript/translucid/Translucid.js | 2 +- typescript/translucid/Translucid.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 1435d81..36cf994 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -46,7 +46,7 @@ class Translucid { toRun[i](prev, ...expressArgs, decorated[i + 1]); }); } - decorated.push((prev, req, res) => { + decorated.push((prev) => { console.log(`${__dirname}/../../${filepath}`); // res.contentType(`${__dirname}/../../${filepath}`); res.send(prev); diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index 2cf173f..10be791 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -54,7 +54,7 @@ class Translucid { toRun[i](prev, ...expressArgs, decorated[i + 1]); }); } - decorated.push((prev:any,req,res):void => { + decorated.push((prev:any):void => { console.log(`${__dirname}/../../${filepath}`); // res.contentType(`${__dirname}/../../${filepath}`); res.send(prev);