Skip to content

Commit e75695e

Browse files
committed
refactor: replace any type with TrackerConfig interface in gh-sync-repo
1 parent df9ecda commit e75695e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/utils/gh-sync-utils/gh-sync-repo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { logger } from '../../logger'
22
import { context } from '../../context'
33
import { existsSync, mkdirSync, statSync } from 'fs'
44
import { dirname, join, normalize, relative } from 'path'
5-
import { readTrackerConfig, writeTrackerConfig } from '../tracker'
5+
import { readTrackerConfig, writeTrackerConfig, TrackerConfig } from '../tracker'
66
import {
77
getLatestCommitHash,
88
downloadRepository,
@@ -130,7 +130,7 @@ async function checkIfShouldFetch(
130130
branch: string,
131131
sync: boolean,
132132
force: boolean,
133-
trackerConfig: any,
133+
trackerConfig: TrackerConfig,
134134
): Promise<{ shouldFetch: boolean; latestCommitHash: string }> {
135135
let shouldFetch = true
136136
let latestCommitHash = ''
@@ -251,7 +251,7 @@ function updateTrackerWithLatestData(
251251
branch: string,
252252
latestCommitHash: string,
253253
fileData: Record<string, Record<string, { hash: string; syncedAt: string; action: string }>>,
254-
trackerConfig: any,
254+
trackerConfig: TrackerConfig,
255255
cwd: string,
256256
): void {
257257
logger.info(`Updating sync data for repository ${repo}`)

0 commit comments

Comments
 (0)