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

Export RouteDefinition #2

Merged
merged 1 commit into from
Nov 8, 2020
Merged

Export RouteDefinition #2

merged 1 commit into from
Nov 8, 2020

Conversation

amoutonbrady
Copy link
Member

Exporting RouteDefinition is useful in user land when you are defining your routes in a separate file.

This would allow for something like that:

import type { RouteDefinition } from 'solid-app-router'

export const routes: RouteDefinition[] = [
  {
    path: '/',
    component: 'pages/home.tsx'
  }
]

@ryansolid ryansolid merged commit a01fb2f into solidjs:master Nov 8, 2020
@ryansolid
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants