Skip to content

Commit 7063aca

Browse files
committed
lint
1 parent 80f7735 commit 7063aca

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/react-router/src/typePrimitives.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type {
22
AnyRouter,
3-
Constrain,
43
InferFrom,
54
InferMaskFrom,
65
InferMaskTo,

packages/react-router/tests/validateLinkOptions.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { describe, expect, test } from 'vitest'
22
import { createFileRoute } from '../src/fileRoute'
33
import type {
44
ValidateLinkOptions,
5-
ValidateUseSearchOptions,
65
ValidateUseParamsOptions,
6+
ValidateUseSearchOptions,
77
} from '../src/typePrimitives'
88
import type {
99
ValidateNavigateOptions,
@@ -54,7 +54,7 @@ describe('Validation types regression tests', () => {
5454
test('should work with array of ValidateLinkOptions', () => {
5555
const route = createFileRoute('/dashboard')({
5656
loader: () => {
57-
const breadcrumbs: ValidateLinkOptions[] = [
57+
const breadcrumbs: Array<ValidateLinkOptions> = [
5858
{ to: '/' },
5959
{ to: '/dashboard' },
6060
]

packages/router-core/src/typePrimitives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { RouteIds } from './routeInfo'
1010
import type { AnyRouter, RegisteredRouter } from './router'
1111
import type { UseParamsResult } from './useParams'
1212
import type { UseSearchResult } from './useSearch'
13-
import type { Constrain, ConstrainLiteral } from './utils'
13+
import type { ConstrainLiteral } from './utils'
1414

1515
export type ValidateFromPath<
1616
TRouter extends AnyRouter = RegisteredRouter,

0 commit comments

Comments
 (0)