@rizom/brain 0.2.0-alpha.81 → 0.2.0-alpha.83

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.
@@ -68,13 +68,13 @@ interface RuntimeScript {
68
68
  * @param TSchema - Type validated by schema (e.g., with optional url/typeLabel)
69
69
  * @param TComponent - Type expected by component (e.g., with required url/typeLabel)
70
70
  */
71
- declare function createTypedComponent<TSchema, TComponent = TSchema>(schema: z.ZodType<TSchema>, component: ComponentType<TComponent>): ComponentType<unknown>;
71
+ declare function createTypedComponent<TSchema, TComponent = TSchema>(schema: z.ZodType<TSchema, z.ZodTypeDef, unknown>, component: ComponentType<TComponent>): ComponentType<unknown>;
72
72
  /**
73
73
  * Unified template interface that bundles content generation and view rendering
74
74
  * This is the single source of truth for what constitutes a template
75
75
  */
76
76
  interface Template extends Omit<z.infer<typeof TemplateSchema>, "schema" | "layout" | "formatter"> {
77
- schema: z.ZodSchema;
77
+ schema: z.ZodType<unknown, z.ZodTypeDef, unknown>;
78
78
  layout?: {
79
79
  component?: ComponentType<unknown>;
80
80
  fullscreen?: boolean;
@@ -100,7 +100,7 @@ interface Template extends Omit<z.infer<typeof TemplateSchema>, "schema" | "layo
100
100
  * @param TComponent - Type expected by component (after enrichment)
101
101
  */
102
102
  declare function createTemplate<TSchema = unknown, TComponent = TSchema>(template: Omit<Template, "layout" | "schema"> & {
103
- schema: z.ZodType<TSchema>;
103
+ schema: z.ZodType<TSchema, z.ZodTypeDef, unknown>;
104
104
  layout?: {
105
105
  component?: ComponentType<TComponent>;
106
106
  fullscreen?: boolean;