refactor: trim slack test helper exports · openclaw/openclaw@38e162d
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { WebFetchProviderPlugin } from "openclaw/plugin-sdk/provider-web-fetch-contract"; |
2 | 2 | |
3 | | -type FirecrawlWebFetchProviderSharedFields = Omit< |
4 | | -WebFetchProviderPlugin, |
5 | | -"applySelectionConfig" | "createTool" |
6 | | ->; |
7 | | - |
8 | 3 | function ensureRecord(target: Record<string, unknown>, key: string): Record<string, unknown> { |
9 | 4 | const current = target[key]; |
10 | 5 | if (current && typeof current === "object" && !Array.isArray(current)) { |
@@ -57,4 +52,4 @@ export const FIRECRAWL_WEB_FETCH_PROVIDER_SHARED = {
|
57 | 52 | const webFetch = ensureRecord(pluginConfig, "webFetch"); |
58 | 53 | webFetch.apiKey = value; |
59 | 54 | }, |
60 | | -} satisfies FirecrawlWebFetchProviderSharedFields; |
| 55 | +} satisfies Omit<WebFetchProviderPlugin, "applySelectionConfig" | "createTool">; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。