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
|
@ -53,7 +53,7 @@ class Translucid {
|
|||
const expressArgs = [req, res];
|
||||
|
||||
for (let i = 0; i < toRun.length; i++) {
|
||||
decorated.push((prev:any):void => {
|
||||
decorated.push((prev:any=(!sendFiles)?readResults:`${dir}/${filepath}`):void => {
|
||||
toRun[i](prev, ...expressArgs, decorated[i + 1]);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue