First of all, I\'ve already seen the other posts about error TS1005. Same error code, but totally different.
A simple let x: number; will gener
let x: number;
If you're getting error TS1005: 'finally' expected., it means you forgot to implement catch after try. Generally, it means the syntax you attempted to use was incorrect.
error TS1005: 'finally' expected.
catch
try