我正在尝试将上传文件的内容转换为MD5散列。我正在尝试声明一个全局声明,以便在函数内部使用。但是,当我尝试使用它时,我得到了错误Variable 'hasher' implicitly has type 'any' in some locations where its type cannot1024; let hasher = null;
function hashChunk(chunk: any)
我一直在研究并尝试将现有项目(从Node.js)转换为TypeScript。对于上下文,我使用的是http-status包()import status = require("http-status");
status["OK"] // this also works
let str = "OK&quo