【发布时间】:2017-08-11 11:19:34
【问题描述】:
我正在使用btoa 方法对用户名、密码进行哈希处理,这似乎工作正常,但此错误出现在我的 TypeScript 错误 - WebStorm 中。如何解决?
js 代码
let base64hash = btoa(user.username+ ':' + user.key);
tsconfig.json
/* tsconfig.json */
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2016"
]
}
}
【问题讨论】:
-
我们可以从你发布相关代码和配置开始。
标签: typescript webstorm