@decocms/runtime 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/runtime",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsc --noEmit",
package/src/events.ts CHANGED
@@ -92,7 +92,7 @@ export type EventHandlers<
92
92
  > = [TSchema] extends [never]
93
93
  ? Record<string, never>
94
94
  :
95
- | BatchHandler<z.infer<TSchema>> // Global handler with events
95
+ | BatchHandler<Env> // Global handler with events
96
96
  | {
97
97
  [K in keyof z.infer<TSchema> as z.infer<TSchema>[K] extends {
98
98
  __type: string;
package/src/tools.ts CHANGED
@@ -331,7 +331,7 @@ export interface CreateMCPServerOptions<
331
331
  before?: (env: TEnv) => Promise<void> | void;
332
332
  oauth?: OAuthConfig;
333
333
  events?: {
334
- bus?: keyof PickByType<TEnv, EventBusBindingClient>;
334
+ bus?: keyof PickByType<State, EventBusBindingClient>;
335
335
  handlers?: EventHandlers<TEnv, TSchema>;
336
336
  };
337
337
  configuration?: {