index.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. export type {
  2. ActionFunction,
  3. ActionFunctionArgs,
  4. AgnosticDataIndexRouteObject,
  5. AgnosticDataNonIndexRouteObject,
  6. AgnosticDataRouteMatch,
  7. AgnosticDataRouteObject,
  8. AgnosticIndexRouteObject,
  9. AgnosticNonIndexRouteObject,
  10. AgnosticPatchRoutesOnNavigationFunction,
  11. AgnosticPatchRoutesOnNavigationFunctionArgs,
  12. AgnosticRouteMatch,
  13. AgnosticRouteObject,
  14. DataStrategyFunction,
  15. DataStrategyFunctionArgs,
  16. DataStrategyMatch,
  17. DataStrategyResult,
  18. ErrorResponse,
  19. FormEncType,
  20. FormMethod,
  21. HTMLFormMethod,
  22. JsonFunction,
  23. LazyRouteFunction,
  24. LoaderFunction,
  25. LoaderFunctionArgs,
  26. ParamParseKey,
  27. Params,
  28. PathMatch,
  29. PathParam,
  30. PathPattern,
  31. RedirectFunction,
  32. ShouldRevalidateFunction,
  33. ShouldRevalidateFunctionArgs,
  34. TrackedPromise,
  35. UIMatch,
  36. V7_FormMethod,
  37. DataWithResponseInit as UNSAFE_DataWithResponseInit,
  38. } from "./utils";
  39. export {
  40. AbortedDeferredError,
  41. data,
  42. defer,
  43. generatePath,
  44. getToPathname,
  45. isRouteErrorResponse,
  46. joinPaths,
  47. json,
  48. matchPath,
  49. matchRoutes,
  50. normalizePathname,
  51. redirect,
  52. redirectDocument,
  53. replace,
  54. resolvePath,
  55. resolveTo,
  56. stripBasename,
  57. } from "./utils";
  58. export type {
  59. BrowserHistory,
  60. BrowserHistoryOptions,
  61. HashHistory,
  62. HashHistoryOptions,
  63. History,
  64. InitialEntry,
  65. Location,
  66. MemoryHistory,
  67. MemoryHistoryOptions,
  68. Path,
  69. To,
  70. } from "./history";
  71. export {
  72. Action,
  73. createBrowserHistory,
  74. createHashHistory,
  75. createMemoryHistory,
  76. createPath,
  77. parsePath,
  78. } from "./history";
  79. export * from "./router";
  80. ///////////////////////////////////////////////////////////////////////////////
  81. // DANGER! PLEASE READ ME!
  82. // We consider these exports an implementation detail and do not guarantee
  83. // against any breaking changes, regardless of the semver release. Use with
  84. // extreme caution and only if you understand the consequences. Godspeed.
  85. ///////////////////////////////////////////////////////////////////////////////
  86. /** @internal */
  87. export type { RouteManifest as UNSAFE_RouteManifest } from "./utils";
  88. export {
  89. DeferredData as UNSAFE_DeferredData,
  90. ErrorResponseImpl as UNSAFE_ErrorResponseImpl,
  91. convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes,
  92. convertRouteMatchToUiMatch as UNSAFE_convertRouteMatchToUiMatch,
  93. decodePath as UNSAFE_decodePath,
  94. getResolveToMatches as UNSAFE_getResolveToMatches,
  95. } from "./utils";
  96. export {
  97. invariant as UNSAFE_invariant,
  98. warning as UNSAFE_warning,
  99. } from "./history";