





















@@ -8,13 +8,17 @@ describe("check-plugin-sdk-wildcard-reexports", () => {
88findPluginSdkWildcardReexports(
99[
1010'export * from "openclaw/plugin-sdk/foo";',
11+'export * as sdk from "openclaw/plugin-sdk/foo";',
1112'export type * from "openclaw/plugin-sdk/bar";',
13+'export type * as sdkTypes from "openclaw/plugin-sdk/bar";',
1214'export { named } from "openclaw/plugin-sdk/foo";',
1315].join("\n"),
1416),
1517).toEqual([
1618{ line: 1, text: 'export * from "openclaw/plugin-sdk/foo";' },
17-{ line: 2, text: 'export type * from "openclaw/plugin-sdk/bar";' },
19+{ line: 2, text: 'export * as sdk from "openclaw/plugin-sdk/foo";' },
20+{ line: 3, text: 'export type * from "openclaw/plugin-sdk/bar";' },
21+{ line: 4, text: 'export type * as sdkTypes from "openclaw/plugin-sdk/bar";' },
1822]);
1923});
2024@@ -25,6 +29,7 @@ describe("check-plugin-sdk-wildcard-reexports", () => {
2529'export { named } from "openclaw/plugin-sdk/foo";',
2630'export type { Named } from "openclaw/plugin-sdk/foo";',
2731'export * from "./src/runtime-api.js";',
32+'export * as runtime from "./src/runtime-api.js";',
2833].join("\n"),
2934),
3035).toStrictEqual([]);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。