Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

router-plugin-context.ts

11 lines269 Bytes

1import type { GetRoutesByFileMapResult } from '@tanstack/router-generator'
2​
3export type RouterPluginContext = {
4 routesByFile: GetRoutesByFileMapResult
5}
6​
7export function createRouterPluginContext(): RouterPluginContext {
8 return {
9 routesByFile: new Map(),
10 }