typescript(translucid): updated docs
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
8d274609bb
commit
56a27a0398
3 changed files with 39 additions and 11 deletions
typescript/translucid
|
@ -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]);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue