diff --git a/src/changedFiles.ts b/src/changedFiles.ts index 4e4561eb..ee0d650f 100644 --- a/src/changedFiles.ts +++ b/src/changedFiles.ts @@ -1,5 +1,6 @@ import * as core from '@actions/core' -import {Octokit, RestEndpointMethodTypes} from '@octokit/rest' +import {Octokit} from '@octokit/rest' +import type {RestEndpointMethodTypes} from '@octokit/rest' import * as path from 'path' import {DiffResult} from './commitSha' diff --git a/src/main.ts b/src/main.ts index 2cc8ee23..23514099 100644 --- a/src/main.ts +++ b/src/main.ts @@ -278,7 +278,7 @@ export async function run(): Promise { core.debug(`Inputs: ${JSON.stringify(inputs, null, 2)}`) if (inputs.token && env.GITHUB_EVENT_PULL_REQUEST_NUMBER) { - const unsupportedInputs: Array = [ + const unsupportedInputs: (keyof Inputs)[] = [ 'sha', 'baseSha', 'since',