Fix typing of reviewer hooks

This commit is contained in:
Henrik Giesel 2020-12-29 13:42:30 +01:00
parent ecdb06cbd6
commit 53f77346d8

View File

@ -8,10 +8,10 @@ var _updatingQA = false;
var qFade = 50;
var aFade = 0;
var onUpdateHook;
var onShownHook;
var onUpdateHook: Array<() => Promise<void>>;
var onShownHook: Array<() => Promise<void>>;
function _runHook(arr: () => Promise<any>[]): Promise<any[]> {
function _runHook(arr: Array<() => Promise<void>>): Promise<void[]> {
var promises = [];
for (var i = 0; i < arr.length; i++) {