(config: {
name: string;
props: T;
description: string;
component: ComponentRenderer<z.infer<T>>;
})
| 38 | // ─── defineComponent (React) ──────────────────────────────────────────────── |
| 39 | |
| 40 | export function defineComponent<T extends $ZodObject>(config: { |
| 41 | name: string; |
| 42 | props: T; |
| 43 | description: string; |
| 44 | component: ComponentRenderer<z.infer<T>>; |
| 45 | }): DefinedComponent<T> { |
| 46 | return coreDefineComponent<T, ComponentRenderer<z.infer<T>>>(config); |
| 47 | } |
| 48 | |
| 49 | // ─── createLibrary (React) ────────────────────────────────────────────────── |
| 50 |
no outgoing calls
no test coverage detected