Typescript compile error in index.d.ts
Posted: Mon Jan 31, 2022 10:01 am
The following error is thrown when using SwitchScriptTool to compile to a sscript file:
Error: TypeScript standard output: C:/Program Files/Enfocus/Enfocus Switch/SwitchScriptTool/obfuscator/node_modules/@types/switch-scripting/index.d.ts(880,3): error
TS7010: 'close', which lacks return-type annotation, implicitly has an 'any' return type.
C:/Program Files/Enfocus/Enfocus Switch/SwitchScriptTool/obfuscator/node_modules/@types/switch-scripting/index.d.ts(1208,3): error TS7010: 'close', which lacks return-type annotation, implicitly has an 'any' return type.
And then after re-installing @types in local project the error is thrown from the index.d.ts in the switch-scripting local.
Error: Failed to transpile the code: TypeScript failed with exit code 2
Error: TypeScript standard output: node_modules/@types/switch-scripting/index.d.ts(772,3): error TS7010: 'close', which lacks return-type annotation, implicitly has
an 'any' return type.
Can anybody suggest a reason for this, as this is internal to the Enfocus Script Tool? I have attached a screenshot of the error shown in the index.d.ts as is in the switch-scripting folder.
Error: TypeScript standard output: C:/Program Files/Enfocus/Enfocus Switch/SwitchScriptTool/obfuscator/node_modules/@types/switch-scripting/index.d.ts(880,3): error
TS7010: 'close', which lacks return-type annotation, implicitly has an 'any' return type.
C:/Program Files/Enfocus/Enfocus Switch/SwitchScriptTool/obfuscator/node_modules/@types/switch-scripting/index.d.ts(1208,3): error TS7010: 'close', which lacks return-type annotation, implicitly has an 'any' return type.
And then after re-installing @types in local project the error is thrown from the index.d.ts in the switch-scripting local.
Error: Failed to transpile the code: TypeScript failed with exit code 2
Error: TypeScript standard output: node_modules/@types/switch-scripting/index.d.ts(772,3): error TS7010: 'close', which lacks return-type annotation, implicitly has
an 'any' return type.
Can anybody suggest a reason for this, as this is internal to the Enfocus Script Tool? I have attached a screenshot of the error shown in the index.d.ts as is in the switch-scripting folder.