refactor(shared): hide helper option types · openclaw/openclaw@884a6a1
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ const MALFORMED_STREAMING_FRAGMENT_USER_MESSAGE =
|
27 | 27 | |
28 | 28 | type ErrorPayload = Record<string, unknown>; |
29 | 29 | |
30 | | -export type ApiErrorInfo = { |
| 30 | +type ApiErrorInfo = { |
31 | 31 | httpCode?: string; |
32 | 32 | type?: string; |
33 | 33 | message?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -45,7 +45,7 @@ export function isConfigPathTruthyWithDefaults(
|
45 | 45 | return isTruthy(value); |
46 | 46 | } |
47 | 47 | |
48 | | -export type RuntimeRequires = { |
| 48 | +type RuntimeRequires = { |
49 | 49 | bins?: string[]; |
50 | 50 | anyBins?: string[]; |
51 | 51 | env?: string[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ import {
|
8 | 8 | type RequirementsMetadata, |
9 | 9 | } from "./requirements.js"; |
10 | 10 | |
11 | | -export type EntryMetadataRequirementsParams = Parameters< |
| 11 | +type EntryMetadataRequirementsParams = Parameters< |
12 | 12 | typeof evaluateEntryMetadataRequirements |
13 | 13 | >[0]; |
14 | 14 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ export type LazyPromiseLoader<T> = {
|
7 | 7 | }; |
8 | 8 | |
9 | 9 | /** Options for controlling lazy promise cache behavior. */ |
10 | | -export type LazyPromiseLoaderOptions = { |
| 10 | +type LazyPromiseLoaderOptions = { |
11 | 11 | /** Keep rejected promises cached instead of allowing the next caller to retry. */ |
12 | 12 | cacheRejections?: boolean; |
13 | 13 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ const NODE_PRESENCE_ALIVE_REASONS = [
|
15 | 15 | ] as const; |
16 | 16 | |
17 | 17 | /** Canonical trigger reason stored with node presence updates. */ |
18 | | -export type NodePresenceAliveReason = (typeof NODE_PRESENCE_ALIVE_REASONS)[number]; |
| 18 | +type NodePresenceAliveReason = (typeof NODE_PRESENCE_ALIVE_REASONS)[number]; |
19 | 19 | |
20 | 20 | const NODE_PRESENCE_ALIVE_REASON_SET = new Set<string>(NODE_PRESENCE_ALIVE_REASONS); |
21 | 21 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,7 @@ export type StoreWriterQueue = {
|
19 | 19 | }; |
20 | 20 | |
21 | 21 | /** Store writer queues keyed by the canonical store path. */ |
22 | | -export type StoreWriterQueues = Map<string, StoreWriterQueue>; |
| 22 | +type StoreWriterQueues = Map<string, StoreWriterQueue>; |
23 | 23 | |
24 | 24 | function getOrCreateStoreWriterQueue( |
25 | 25 | queues: StoreWriterQueues, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。