commit | 61fc9bdc00571d9b797243a8282ce21d1c49b348 | [log] [tgz] |
---|---|---|
author | Sigurd Schneider <[email protected]> | Wed Jul 14 09:01:53 2021 |
committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 14 10:33:21 2021 |
tree | 726ea60f2c8e5958e3c79d7dc7647c2fa90ebc13 | |
parent | cad80659e9e0bd6c9835075458e173167c7553e2 [diff] [blame] |
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. */