diff options
| author | Dax Raad <[email protected]> | 2025-05-29 10:21:59 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-29 10:22:07 -0400 |
| commit | 33a831d2be1fd7bea60421287f118be0bd968650 (patch) | |
| tree | 9b82f8b958fa78c18b13284b9c7cd496dcec651e /js/src/bus | |
| parent | d70201cd9365aec6c88f9794eb63f411f5040cb9 (diff) | |
| download | opencode-33a831d2be1fd7bea60421287f118be0bd968650.tar.gz opencode-33a831d2be1fd7bea60421287f118be0bd968650.zip | |
rework types
Diffstat (limited to 'js/src/bus')
| -rw-r--r-- | js/src/bus/index.ts | 11 |
1 files changed, 11 insertions, 0 deletions
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()) { |
