Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 9501ff7

Browse files
chore: use type import
1 parent 8ce1bef commit 9501ff7

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/process.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import type {DiffResult} from './types';
2+
import type {Context} from '@actions/github/lib/context';
3+
import type {Logger} from '@technote-space/github-action-log-helper';
14
import {exportVariable, getInput, setOutput} from '@actions/core' ;
2-
import {Context} from '@actions/github/lib/context';
3-
import {Logger} from '@technote-space/github-action-log-helper';
45
import {getGitDiff, getDiffFiles, getMatchedFiles, sumResults} from './utils/command';
5-
import {DiffResult} from './types';
66

77
export const dumpDiffs = (diffs: DiffResult[], logger: Logger): void => {
88
logger.startProcess('Dump diffs');

src/utils/command.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import type {Options} from 'multimatch';
2+
import type {Context} from '@actions/github/lib/context';
3+
import type {FileDiffResult, FileResult, DiffResult, DiffInfo} from '../types';
14
import {basename, join} from 'path';
25
import {getInput} from '@actions/core' ;
3-
import {Context} from '@actions/github/lib/context';
4-
import multimatch, {Options} from 'multimatch';
6+
import multimatch from 'multimatch';
57
import {Command, Utils, GitHelper} from '@technote-space/github-action-helper';
68
import {Logger} from '@technote-space/github-action-log-helper';
79
import {escape, getDiffInfo} from './misc';
8-
import {FileDiffResult, FileResult, DiffResult, DiffInfo} from '../types';
910
import {REMOTE_NAME} from '../constant';
1011

1112
const command = new Command(new Logger());

src/utils/misc.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {Context} from '@actions/github/lib/context';
2-
import {Octokit} from '@technote-space/github-action-helper/dist/types';
1+
import type {PullRequestParams, DiffInfo} from '../types';
2+
import type {Context} from '@actions/github/lib/context';
3+
import type {Octokit} from '@technote-space/github-action-helper/dist/types';
34
import {Utils, ApiHelper} from '@technote-space/github-action-helper';
4-
import {PullRequestParams, DiffInfo} from '../types';
55
import {getInput} from '@actions/core';
66

77
export const escape = (items: string[]): string[] => items.map(item => {

0 commit comments

Comments
 (0)