index.d.mts 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*!
  2. * vue-router v4.6.4
  3. * (c) 2025 Eduardo San Martin Morote
  4. * @license MIT
  5. */
  6. import { A as MatcherPatternPathDynamic_ParamOptions, D as MatcherPatternHash, E as MatcherPattern, M as MatcherQueryParams, N as MatcherQueryParamsValue, O as MatcherPatternPath, P as ParamParser, S as PARAM_PARSER_BOOL, T as MatcherParamsFormatted, _ as MatcherPatternQueryParam, a as EXPERIMENTAL_RouteRecord_Base, b as defineQueryParamParser, c as EXPERIMENTAL_Router, d as EXPERIMENTAL_Router_Base, f as experimental_createRouter, g as MatcherPatternQuery, h as createFixedResolver, i as EXPERIMENTAL_RouteRecordRaw, j as MatcherPatternPathStatic, k as MatcherPatternPathDynamic, l as EXPERIMENTAL_RouterOptions, m as normalizeRouteRecord, n as EXPERIMENTAL_RouteRecordNormalized_Group, o as EXPERIMENTAL_RouteRecord_Group, p as mergeRouteRecord, r as EXPERIMENTAL_RouteRecordNormalized_Matchable, s as EXPERIMENTAL_RouteRecord_Matchable, t as EXPERIMENTAL_RouteRecordNormalized, u as EXPERIMENTAL_RouterOptions_Base, v as defineParamParser, w as EmptyParams, x as PARAM_PARSER_INT, y as definePathParamParser } from "../router-CWoNjPRp.mjs";
  7. //#region src/experimental/route-resolver/matchers/errors.d.ts
  8. /**
  9. * Error throw when a matcher matches by regex but validation fails.
  10. */
  11. declare class MatchMiss extends Error {
  12. name: string;
  13. }
  14. /**
  15. * Helper to create a {@link MatchMiss} error.
  16. * @param args - Arguments to pass to the `MatchMiss` constructor.
  17. *
  18. * @example
  19. * ```ts
  20. * throw miss()
  21. * // in a number param matcher
  22. * throw miss('Number must be finite')
  23. * ```
  24. */
  25. declare const miss: (...args: ConstructorParameters<typeof MatchMiss>) => MatchMiss;
  26. //#endregion
  27. //#region src/experimental/index.d.ts
  28. declare module 'vue-router' {
  29. interface RouteLocationMatched {
  30. /**
  31. * The experimental router uses a `parent` property instead of `children`.
  32. */
  33. children?: never;
  34. }
  35. }
  36. //#endregion
  37. export { type EXPERIMENTAL_RouteRecordNormalized, type EXPERIMENTAL_RouteRecordNormalized_Group, type EXPERIMENTAL_RouteRecordNormalized_Matchable, type EXPERIMENTAL_RouteRecordRaw, type EXPERIMENTAL_RouteRecord_Base, type EXPERIMENTAL_RouteRecord_Group, type EXPERIMENTAL_RouteRecord_Matchable, type EXPERIMENTAL_Router, type EXPERIMENTAL_RouterOptions, type EXPERIMENTAL_RouterOptions_Base, type EXPERIMENTAL_Router_Base, type EmptyParams, MatchMiss, type MatcherParamsFormatted, type MatcherPattern, type MatcherPatternHash, type MatcherPatternPath, MatcherPatternPathDynamic, type MatcherPatternPathDynamic_ParamOptions, MatcherPatternPathStatic, type MatcherPatternQuery, MatcherPatternQueryParam, type MatcherQueryParams, type MatcherQueryParamsValue, PARAM_PARSER_BOOL, PARAM_PARSER_INT, type ParamParser, mergeRouteRecord as _mergeRouteRecord, createFixedResolver, defineParamParser, definePathParamParser, defineQueryParamParser, experimental_createRouter, miss, normalizeRouteRecord };