index.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. export type {
  2. ActionFunction,
  3. ActionFunctionArgs,
  4. AgnosticDataIndexRouteObject,
  5. AgnosticDataNonIndexRouteObject,
  6. AgnosticDataRouteMatch,
  7. AgnosticDataRouteObject,
  8. AgnosticIndexRouteObject,
  9. AgnosticNonIndexRouteObject,
  10. AgnosticRouteMatch,
  11. AgnosticRouteObject,
  12. TrackedPromise,
  13. FormEncType,
  14. FormMethod,
  15. JsonFunction,
  16. LoaderFunction,
  17. LoaderFunctionArgs,
  18. ParamParseKey,
  19. Params,
  20. PathMatch,
  21. PathPattern,
  22. RedirectFunction,
  23. ShouldRevalidateFunction,
  24. Submission,
  25. } from "./utils";
  26. export {
  27. AbortedDeferredError,
  28. ErrorResponse,
  29. defer,
  30. generatePath,
  31. getToPathname,
  32. isRouteErrorResponse,
  33. joinPaths,
  34. json,
  35. matchPath,
  36. matchRoutes,
  37. normalizePathname,
  38. redirect,
  39. resolvePath,
  40. resolveTo,
  41. stripBasename,
  42. warning,
  43. } from "./utils";
  44. export type {
  45. BrowserHistory,
  46. BrowserHistoryOptions,
  47. HashHistory,
  48. HashHistoryOptions,
  49. History,
  50. InitialEntry,
  51. Location,
  52. MemoryHistory,
  53. MemoryHistoryOptions,
  54. Path,
  55. To,
  56. } from "./history";
  57. export {
  58. Action,
  59. createBrowserHistory,
  60. createPath,
  61. createHashHistory,
  62. createMemoryHistory,
  63. invariant,
  64. parsePath,
  65. } from "./history";
  66. export * from "./router";
  67. ///////////////////////////////////////////////////////////////////////////////
  68. // DANGER! PLEASE READ ME!
  69. // We consider these exports an implementation detail and do not guarantee
  70. // against any breaking changes, regardless of the semver release. Use with
  71. // extreme caution and only if you understand the consequences. Godspeed.
  72. ///////////////////////////////////////////////////////////////////////////////
  73. /** @internal */
  74. export {
  75. DeferredData as UNSAFE_DeferredData,
  76. convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes,
  77. getPathContributingMatches as UNSAFE_getPathContributingMatches,
  78. } from "./utils";