diff --git a/src/lib.ts b/src/lib.ts index 95675103..faf9c335 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -3,12 +3,11 @@ import {action, ActionInterface, Status} from './constants' import {generateExport, retrieveData} from './fetch' import {extractErrorMessage, hasRequiredParameters} from './util' -/** Initializes and runs the action. - * - * @param {ActionInterface} configuration - The configuration object. +/** + * Initializes and runs the action. */ export default async function run( - configuration: ActionInterface + configuration?: ActionInterface ): Promise { let status: Status = Status.RUNNING diff --git a/src/main.ts b/src/main.ts index 10f4069b..029bc7e5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,3 @@ -import {action} from './constants' import run from './lib' -run(action) +run()