Skip to content

Commit

Permalink
refactor: remove exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarvin8 authored Oct 22, 2024
1 parent 153a04b commit acf6404
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/setCoverageDataType.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
import { DeployCoverageData, TestCoverageData } from './types.js';

// Type guard for DeployCoverageData
export function isDeployCoverageData(data: unknown): data is DeployCoverageData {
function isDeployCoverageData(data: unknown): data is DeployCoverageData {
if (typeof data !== 'object' || data === null) return false;

return Object.entries(data).every(([, item]) => {
@@ -51,7 +51,7 @@ export function isDeployCoverageData(data: unknown): data is DeployCoverageData
}

// Type guard for a single TestCoverageData
export function isSingleTestCoverageData(data: unknown): data is TestCoverageData {
function isSingleTestCoverageData(data: unknown): data is TestCoverageData {
return (
typeof data === 'object' &&
data !== null &&
@@ -66,7 +66,7 @@ export function isSingleTestCoverageData(data: unknown): data is TestCoverageDat
}

// Type guard for TestCoverageData array
export function isTestCoverageDataArray(data: unknown): data is TestCoverageData[] {
function isTestCoverageDataArray(data: unknown): data is TestCoverageData[] {
return Array.isArray(data) && data.every(isSingleTestCoverageData);
}

0 comments on commit acf6404

Please sign in to comment.