refactor(shared): hide helper option types

This commit is contained in:
Vincent Koc
2026-06-17 16:02:46 +08:00
parent bed5bf339e
commit 884a6a113c
6 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ const MALFORMED_STREAMING_FRAGMENT_USER_MESSAGE =
type ErrorPayload = Record<string, unknown>;
export type ApiErrorInfo = {
type ApiErrorInfo = {
httpCode?: string;
type?: string;
message?: string;

View File

@@ -45,7 +45,7 @@ export function isConfigPathTruthyWithDefaults(
return isTruthy(value);
}
export type RuntimeRequires = {
type RuntimeRequires = {
bins?: string[];
anyBins?: string[];
env?: string[];

View File

@@ -8,7 +8,7 @@ import {
type RequirementsMetadata,
} from "./requirements.js";
export type EntryMetadataRequirementsParams = Parameters<
type EntryMetadataRequirementsParams = Parameters<
typeof evaluateEntryMetadataRequirements
>[0];

View File

@@ -7,7 +7,7 @@ export type LazyPromiseLoader<T> = {
};
/** Options for controlling lazy promise cache behavior. */
export type LazyPromiseLoaderOptions = {
type LazyPromiseLoaderOptions = {
/** Keep rejected promises cached instead of allowing the next caller to retry. */
cacheRejections?: boolean;
};

View File

@@ -15,7 +15,7 @@ const NODE_PRESENCE_ALIVE_REASONS = [
] as const;
/** Canonical trigger reason stored with node presence updates. */
export type NodePresenceAliveReason = (typeof NODE_PRESENCE_ALIVE_REASONS)[number];
type NodePresenceAliveReason = (typeof NODE_PRESENCE_ALIVE_REASONS)[number];
const NODE_PRESENCE_ALIVE_REASON_SET = new Set<string>(NODE_PRESENCE_ALIVE_REASONS);

View File

@@ -19,7 +19,7 @@ export type StoreWriterQueue = {
};
/** Store writer queues keyed by the canonical store path. */
export type StoreWriterQueues = Map<string, StoreWriterQueue>;
type StoreWriterQueues = Map<string, StoreWriterQueue>;
function getOrCreateStoreWriterQueue(
queues: StoreWriterQueues,