From 33a831d2be1fd7bea60421287f118be0bd968650 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 29 May 2025 10:21:59 -0400 Subject: rework types --- js/src/bus/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'js/src/bus') diff --git a/js/src/bus/index.ts b/js/src/bus/index.ts index 15d2b1107..82bc614e0 100644 --- a/js/src/bus/index.ts +++ b/js/src/bus/index.ts @@ -30,6 +30,17 @@ export namespace Bus { return result; } + export function payloads() { + return registry + .entries() + .map(([type, def]) => + z.object({ + type: z.string("hey"), + }), + ) + .toArray(); + } + export function specs() { const children = {} as any; for (const [type, def] of registry.entries()) { -- cgit v1.2.3