[7.x] [Actions] Fix actionType type on registerType function (#82125) (#82141)

This commit is contained in:
Christos Nasikas 2020-10-30 19:12:07 +02:00 committed by GitHub
parent e73c0fd72c
commit 4e7b841c77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,9 +254,10 @@ export class ActionsPlugin implements Plugin<Promise<PluginSetupContract>, Plugi
registerType: <
Config extends ActionTypeConfig = ActionTypeConfig,
Secrets extends ActionTypeSecrets = ActionTypeSecrets,
Params extends ActionTypeParams = ActionTypeParams
Params extends ActionTypeParams = ActionTypeParams,
ExecutorResultData = void
>(
actionType: ActionType<Config, Secrets, Params>
actionType: ActionType<Config, Secrets, Params, ExecutorResultData>
) => {
if (!(actionType.minimumLicenseRequired in LICENSE_TYPE)) {
throw new Error(`"${actionType.minimumLicenseRequired}" is not a valid license type`);