I'm using btoa
method for hashing username, password which seems to work fine but this error shows up in my TypeScript errors - WebStorm. How to resolve this?
js code
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"
]
}
}