diff --git a/src/cron/session-reaper.ts b/src/cron/session-reaper.ts index be8cc835e2f..8de393931bd 100644 --- a/src/cron/session-reaper.ts +++ b/src/cron/session-reaper.ts @@ -36,7 +36,7 @@ export function resolveRetentionMs(cronConfig?: CronConfig): number | null { return DEFAULT_RETENTION_MS; } -export type ReaperResult = { +type ReaperResult = { swept: boolean; pruned: number; }; diff --git a/src/cron/session-target.ts b/src/cron/session-target.ts index ecf2877bd3f..008d3f82cbe 100644 --- a/src/cron/session-target.ts +++ b/src/cron/session-target.ts @@ -1,4 +1,4 @@ -export const INVALID_CRON_SESSION_TARGET_ID_ERROR = "invalid cron sessionTarget session id"; +const INVALID_CRON_SESSION_TARGET_ID_ERROR = "invalid cron sessionTarget session id"; export function isInvalidCronSessionTargetIdError(error: unknown): boolean { return error instanceof Error && error.message === INVALID_CRON_SESSION_TARGET_ID_ERROR; diff --git a/src/cron/validate-timestamp.ts b/src/cron/validate-timestamp.ts index a5ce5d1c3de..2e7ce1c13ab 100644 --- a/src/cron/validate-timestamp.ts +++ b/src/cron/validate-timestamp.ts @@ -5,16 +5,16 @@ import type { CronSchedule } from "./types.js"; const ONE_MINUTE_MS = 60 * 1000; const TEN_YEARS_MS = 10 * 365.25 * 24 * 60 * 60 * 1000; -export type TimestampValidationError = { +type TimestampValidationError = { ok: false; message: string; }; -export type TimestampValidationSuccess = { +type TimestampValidationSuccess = { ok: true; }; -export type TimestampValidationResult = TimestampValidationSuccess | TimestampValidationError; +type TimestampValidationResult = TimestampValidationSuccess | TimestampValidationError; /** * Validates at timestamps in cron schedules.