server: initial support for TypeScript

This commit is contained in:
Jesse Chan
2020-09-16 14:32:32 +08:00
parent c78e5d88d1
commit 13480c9bab
17 changed files with 367 additions and 89 deletions
+3 -1
View File
@@ -249,7 +249,9 @@ class ClientRequest {
const sourcePaths = getEnsuredArray(options.sourcePaths);
sourcePaths.forEach((source, index) => {
let callback = () => {};
let callback = () => {
// empty initializer
};
const destination = `${destinationPath}${path.sep}${filenames[index]}`;
const isLastRequest = index + 1 === sourcePaths.length;