Promise tests
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2025-02-18 02:56:05 +01:00
parent bebbc1d7de
commit e83e86f8f1
4 changed files with 66 additions and 15 deletions

View File

@@ -13,6 +13,7 @@
import { Route as rootRoute } from './routes/__root'
import { Route as TimeImport } from './routes/time'
import { Route as TestsImport } from './routes/tests'
import { Route as PromiseImport } from './routes/promise'
import { Route as CountImport } from './routes/count'
import { Route as BlankImport } from './routes/blank'
import { Route as IndexImport } from './routes/index'
@@ -31,6 +32,12 @@ const TestsRoute = TestsImport.update({
getParentRoute: () => rootRoute,
} as any)
const PromiseRoute = PromiseImport.update({
id: '/promise',
path: '/promise',
getParentRoute: () => rootRoute,
} as any)
const CountRoute = CountImport.update({
id: '/count',
path: '/count',
@@ -74,6 +81,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof CountImport
parentRoute: typeof rootRoute
}
'/promise': {
id: '/promise'
path: '/promise'
fullPath: '/promise'
preLoaderRoute: typeof PromiseImport
parentRoute: typeof rootRoute
}
'/tests': {
id: '/tests'
path: '/tests'
@@ -97,6 +111,7 @@ export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/blank': typeof BlankRoute
'/count': typeof CountRoute
'/promise': typeof PromiseRoute
'/tests': typeof TestsRoute
'/time': typeof TimeRoute
}
@@ -105,6 +120,7 @@ export interface FileRoutesByTo {
'/': typeof IndexRoute
'/blank': typeof BlankRoute
'/count': typeof CountRoute
'/promise': typeof PromiseRoute
'/tests': typeof TestsRoute
'/time': typeof TimeRoute
}
@@ -114,16 +130,17 @@ export interface FileRoutesById {
'/': typeof IndexRoute
'/blank': typeof BlankRoute
'/count': typeof CountRoute
'/promise': typeof PromiseRoute
'/tests': typeof TestsRoute
'/time': typeof TimeRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/blank' | '/count' | '/tests' | '/time'
fullPaths: '/' | '/blank' | '/count' | '/promise' | '/tests' | '/time'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/blank' | '/count' | '/tests' | '/time'
id: '__root__' | '/' | '/blank' | '/count' | '/tests' | '/time'
to: '/' | '/blank' | '/count' | '/promise' | '/tests' | '/time'
id: '__root__' | '/' | '/blank' | '/count' | '/promise' | '/tests' | '/time'
fileRoutesById: FileRoutesById
}
@@ -131,6 +148,7 @@ export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
BlankRoute: typeof BlankRoute
CountRoute: typeof CountRoute
PromiseRoute: typeof PromiseRoute
TestsRoute: typeof TestsRoute
TimeRoute: typeof TimeRoute
}
@@ -139,6 +157,7 @@ const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
BlankRoute: BlankRoute,
CountRoute: CountRoute,
PromiseRoute: PromiseRoute,
TestsRoute: TestsRoute,
TimeRoute: TimeRoute,
}
@@ -156,6 +175,7 @@ export const routeTree = rootRoute
"/",
"/blank",
"/count",
"/promise",
"/tests",
"/time"
]
@@ -169,6 +189,9 @@ export const routeTree = rootRoute
"/count": {
"filePath": "count.tsx"
},
"/promise": {
"filePath": "promise.tsx"
},
"/tests": {
"filePath": "tests.tsx"
},