defuss 3.4.1 → 3.4.2

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/dist/index.d.ts CHANGED
@@ -308,6 +308,22 @@ interface RouteProps extends Props {
308
308
  path: string;
309
309
  router?: Router;
310
310
  exact?: boolean;
311
+ /**
312
+ * A component function to render when this route matches.
313
+ * Unlike children (which are eagerly evaluated by the JSX runtime),
314
+ * the component function is called **lazily** — only after the route
315
+ * has been registered and matched. This ensures `Router.getRequest()`
316
+ * returns the correct params inside the component.
317
+ *
318
+ * Use this when your component needs route params on initial page load
319
+ * (server-rendered / hard-reload scenarios).
320
+ *
321
+ * @example
322
+ * ```tsx
323
+ * <Route path="/project/:projectName" component={ProjectDetailsScreen} />
324
+ * ```
325
+ */
326
+ component?: FC<any>;
311
327
  }
312
328
  declare const Route: FC<RouteProps>;
313
329