test(FN-4486): complete Step 3 — lock desktop core/dashboard typing contract
Fusion-Task-Id: FN-4486 Fusion-Task-Lineage: 7d3b40b2-883f-450c-96ec-796f8af4fa45
This commit is contained in:
@@ -7,6 +7,8 @@ describe("desktop runtime package resolution", () => {
|
||||
const dashboard = await import("@fusion/dashboard");
|
||||
|
||||
expect(core.TaskStore).toBeTypeOf("function");
|
||||
expect(core.Database).toBeTypeOf("function");
|
||||
expect(core.PluginStore).toBeTypeOf("function");
|
||||
expect(dashboard.createServer).toBeTypeOf("function");
|
||||
}, 15000);
|
||||
|
||||
|
||||
8
packages/desktop/src/fusion-typing-contract.ts
Normal file
8
packages/desktop/src/fusion-typing-contract.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// FN-4486 regression guard: this file is included by desktop tsc.
|
||||
// If a closed-surface ambient stub for "@fusion/core" is reintroduced,
|
||||
// these imports will fail during `pnpm --filter @fusion/desktop exec tsc --noEmit`.
|
||||
import { Database, PluginStore } from "@fusion/core";
|
||||
import type { PluginManifest, Task } from "@fusion/core";
|
||||
|
||||
export { Database, PluginStore };
|
||||
export type { PluginManifest, Task };
|
||||
Reference in New Issue
Block a user