Skip to content

Commit

Permalink
ci: Update exports and fix linting (#8975)
Browse files Browse the repository at this point in the history
* fix: export ActionFunctionArgs/LoaderFunctionArgs up through router packages
* ci: add new packages dist/ directories to eslint ignore
  • Loading branch information
brophdawg11 authored Jun 13, 2022
1 parent 72b1345 commit 0d4fde3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/build/
/fixtures/
node_modules/
/docs/api
examples/**/dist/
packages/**/dist/
tutorial/dist/
2 changes: 2 additions & 0 deletions packages/react-router-dom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export { createSearchParams };
// Note: Keep in sync with react-router exports!
export type {
ActionFunction,
ActionFunctionArgs,
DataMemoryRouterProps,
DataRouteMatch,
Fetcher,
Expand All @@ -68,6 +69,7 @@ export type {
JsonFunction,
LayoutRouteProps,
LoaderFunction,
LoaderFunctionArgs,
Location,
MemoryRouterProps,
NavigateFunction,
Expand Down
2 changes: 2 additions & 0 deletions packages/react-router-native/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import URLSearchParams from "@ungap/url-search-params";
// Note: Keep in sync with react-router exports!
export type {
ActionFunction,
ActionFunctionArgs,
DataMemoryRouterProps,
DataRouteMatch,
Fetcher,
Expand All @@ -32,6 +33,7 @@ export type {
JsonFunction,
LayoutRouteProps,
LoaderFunction,
LoaderFunctionArgs,
Location,
MemoryRouterProps,
NavigateFunction,
Expand Down
4 changes: 4 additions & 0 deletions packages/react-router/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import type {
ActionFunction,
ActionFunctionArgs,
DataRouteMatch,
Fetcher,
JsonFunction,
LoaderFunction,
LoaderFunctionArgs,
Location,
Navigation,
Params,
Expand Down Expand Up @@ -92,6 +94,7 @@ type Search = string;
// Expose react-router public API
export type {
ActionFunction,
ActionFunctionArgs,
DataMemoryRouterProps,
DataRouteMatch,
Fetcher,
Expand All @@ -100,6 +103,7 @@ export type {
JsonFunction,
LayoutRouteProps,
LoaderFunction,
LoaderFunctionArgs,
Location,
MemoryRouterProps,
NavigateFunction,
Expand Down

0 comments on commit 0d4fde3

Please sign in to comment.