mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-08 11:02:26 +00:00
refactor(shared): hide helper option types
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -45,7 +45,7 @@ export function isConfigPathTruthyWithDefaults(
|
||||
return isTruthy(value);
|
||||
}
|
||||
|
||||
export type RuntimeRequires = {
|
||||
type RuntimeRequires = {
|
||||
bins?: string[];
|
||||
anyBins?: string[];
|
||||
env?: string[];
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
type RequirementsMetadata,
|
||||
} from "./requirements.js";
|
||||
|
||||
export type EntryMetadataRequirementsParams = Parameters<
|
||||
type EntryMetadataRequirementsParams = Parameters<
|
||||
typeof evaluateEntryMetadataRequirements
|
||||
>[0];
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user