Skip to content

Type Alias: RouterMap

ts
type RouterMap = Record<string, Record<string, unknown>>;

Defined in: packages/core/src/client/FusionClient.ts:58

Router type inferred from a ToolRegistry.

Maps tool names to their action names and argument shapes. This type is used at compile-time only — zero runtime cost.

Example

typescript
type MyRouter = {
    'projects.list': { workspace_id: string; status?: string };
    'projects.create': { workspace_id: string; name: string };
    'billing.refund': { invoice_id: string; amount: number };
};