I'm taking the Microsoft Angular Fundamentals course right now and I spotted lack of semicolons in their examples, something like:
gitSearch = (query: string): Promise<GitSearch> => {
let promise = new Promise<GitSearch>((resolve, reject) => {
if (this.cachedValues[query]) {
resolve(this.cachedValues[query])
}
else {
this.http.get('https://api.github.com/search/repositories?q=' + query)
.toPromise()
.then( (response) => {
resolve(response as GitSearch)
}, (error) => {
reject(error);
})
}
})
return promise;
}
Notice they don't use semicolons after resolve.thisCachedValues[query]). But VS Code gives me TSLint warning 'Missing semicolon' at that line. Is this an issue if I omit the semicolon?