Chore: more any/type assertion improvements (#57450)

* more friday any/type assertion improvements

* Apply suggestions from code review

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* Update public/app/angular/promiseToDigest.test.ts

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
This commit is contained in:
Ashley Harrison
2022-10-25 10:04:35 +01:00
committed by GitHub
parent 8adbacb18e
commit d2a70bc42d
47 changed files with 164 additions and 389 deletions

View File

@@ -13,5 +13,5 @@ export function getMessageFromError(err: string | (Error & { data?: any; statusT
}
}
return err as string;
return err;
}