Update Typescript to 4.1.2 - fix breaking changes

This commit is contained in:
Renan Castro
2020-11-26 18:04:06 -03:00
parent dbd79ed5ea
commit 60b41c357b

View File

@@ -135,7 +135,7 @@ export function findPackageDir(filepath: string) {
// truly unexpected happens). The result value is a string when a Git
// revision was successfully resolved, or undefined otherwise.
export function findGitCommitHash(path: string) {
return new Promise<string>(resolve => {
return new Promise<string|void>(resolve => {
const appDir = findAppDir(path);
if (appDir) {
execFile("git", ["rev-parse", "HEAD"], {