Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the indexed type reference on AvailableRoutes #8918

Merged
merged 7 commits into from
Jul 28, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions packages/router/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export * from './route-focus'
export { parseSearch, getRouteRegexAndParams, matchPath } from './util'

/**
* A more specific interface will be generated by
* babel-plugin-redwood-routes-auto-loader when a redwood project is built
* A more specific interface is created in `.redwood/types/includes/web-routerRoutes`
* when the site is built, which will describe all known routes.
*
* @example
* interface AvailableRoutes {
Expand All @@ -32,11 +32,7 @@ export { parseSearch, getRouteRegexAndParams, matchPath } from './util'
* }
*/
// Keep this in index.ts so it can be extended with declaration merging
export interface AvailableRoutes {
[key: string]: (
args?: Record<string | number, string | number | boolean>
) => string
}
export interface AvailableRoutes {}

export { SkipNavLink, SkipNavContent } from '@reach/skip-nav'

Expand Down