Improve typing of context types

Bug: chromium:1172300
Change-Id: I1a5bb935bc9e4705b1e53f895efd81e56d3ddee0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3025808
Reviewed-by: Tim van der Lippe <[email protected]>
Commit-Queue: Sigurd Schneider <[email protected]>
diff --git a/front_end/ui/legacy/ActionRegistration.ts b/front_end/ui/legacy/ActionRegistration.ts
index 76b8bb2..022be80 100644
--- a/front_end/ui/legacy/ActionRegistration.ts
+++ b/front_end/ui/legacy/ActionRegistration.ts
@@ -110,7 +110,7 @@
     return this.actionRegistration.options;
   }
 
-  contextTypes(): undefined|Array<unknown> {
+  contextTypes(): undefined|Array<Function> {
     if (this.actionRegistration.contextTypes) {
       return this.actionRegistration.contextTypes();
     }
@@ -351,7 +351,7 @@
    * });
    * ```
    */
-  contextTypes?: () => Array<unknown>;
+  contextTypes?: () => Array<Function>;
   /**
    * The descriptions for each of the two states in which a toggleable action can be.
    */