I upgraded tslint and now it complains about:
ERROR: src/Metronome/JobFetcher.ts[13, 32]: Type assertion using the '<>' syntax is forbidden. Use the 'as' syntax instead.
The offending code looks like:
const jobs = <JobConfig[]> <any> await rp(fetchJobsOptions);
What is the as syntax though and why should I use it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…