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 11:04:35 +02:00
committed by GitHub
co-authored by Marcus Andersson
parent 8adbacb18e
commit d2a70bc42d
47 changed files with 164 additions and 389 deletions
@@ -149,7 +149,7 @@ export const LogRowContextProvider: React.FunctionComponent<LogRowContextProvide
// React Hook that creates an object state value called result to component state and a setter function called setResult
// The initial value for result is null
// Used for sorting the response from backend
const [result, setResult] = useState<ResultType>(null as any as ResultType);
const [result, setResult] = useState<ResultType>(null as unknown as ResultType);
// React Hook that creates an object state value called hasMoreContextRows to component state and a setter function called setHasMoreContextRows
// The initial value for hasMoreContextRows is {before: true, after: true}