1
Fork 0

typescript(translucid): updated docs

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-28 20:01:16 +02:00 committed by prescientmoon
parent 8d274609bb
commit 56a27a0398
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
3 changed files with 39 additions and 11 deletions
typescript/translucid

View file

@ -45,7 +45,7 @@ class Translucid {
const decorated = [];
const expressArgs = [req, res];
for (let i = 0; i < toRun.length; i++) {
decorated.push((prev) => {
decorated.push((prev = (!sendFiles) ? readResults : `${dir}/${filepath}`) => {
toRun[i](prev, ...expressArgs, decorated[i + 1]);
});
}