Skip to content

Commit

Permalink
refactor types
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek committed Feb 10, 2025
1 parent 268b8d8 commit f4ce524
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ import { readFile } from 'fs/promises'
import { load } from 'js-yaml'
import { lintFiles } from './linter'
import { getChangedFiles } from './git'
import { Core } from './types'

interface ActionInputs {
githubToken: string
apiKey: string
axeLinterUrl: string
}
import type { Core, ActionInputs } from './types'

async function run(core: Core): Promise<void> {
try {
Expand Down
6 changes: 6 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ export interface LinterResponse {
error?: string
report: LinterReport
}

export interface ActionInputs {
githubToken: string
apiKey: string
axeLinterUrl: string
}

0 comments on commit f4ce524

Please sign in to comment.