mnfst 0.5.191 → 0.5.193

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/lib/manifest.d.ts CHANGED
@@ -184,8 +184,8 @@ export interface ManifestUrl {
184
184
  [param: string]: ManifestUrlParam;
185
185
  }
186
186
 
187
- /** `$route` magic — true if the current route matches the given pattern. */
188
- export type ManifestRoute = (pattern: string) => boolean;
187
+ /** `$route` magic — the current route path (e.g. '/docs/elements'). */
188
+ export type ManifestRoute = string;
189
189
 
190
190
  /**
191
191
  * `$modify('attr')` — exposed in component HTML. Returns the value of an
@@ -349,7 +349,7 @@ export type ManifestDirective =
349
349
  declare global {
350
350
  /** Project data sources registered in manifest.json. */
351
351
  const $x: ManifestSources;
352
- /** Match the current route against a pattern (e.g. `$route('/about')`). */
352
+ /** The current route path (compare or .startsWith against it). */
353
353
  const $route: ManifestRoute;
354
354
  /** Read a parent component attribute (Manifest's prop mechanism). */
355
355
  const $modify: ManifestModify;