index.d.mts 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*!
  2. * vue-router v4.6.3
  3. * (c) 2025 Eduardo San Martin Morote
  4. * @license MIT
  5. */
  6. import { EXPERIMENTAL_RouteRecordNormalized, EXPERIMENTAL_RouteRecordNormalized_Group, EXPERIMENTAL_RouteRecordNormalized_Matchable, EXPERIMENTAL_RouteRecordRaw, EXPERIMENTAL_RouteRecord_Base, EXPERIMENTAL_RouteRecord_Group, EXPERIMENTAL_RouteRecord_Matchable, EXPERIMENTAL_Router, EXPERIMENTAL_RouterOptions, EXPERIMENTAL_RouterOptions_Base, EXPERIMENTAL_Router_Base, EmptyParams, MatcherParamsFormatted, MatcherPattern, MatcherPatternHash, MatcherPatternPath, MatcherPatternPathDynamic, MatcherPatternPathDynamic_ParamOptions, MatcherPatternPathStatic, MatcherPatternQuery, MatcherPatternQueryParam, MatcherQueryParams, MatcherQueryParamsValue, PARAM_PARSER_BOOL, PARAM_PARSER_INT, ParamParser, createFixedResolver, defineParamParser, definePathParamParser, defineQueryParamParser, experimental_createRouter, mergeRouteRecord, normalizeRouteRecord } from "../router-BbqN7H95.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 };