Skip to content

Commit

Permalink
improve unrelated test
Browse files Browse the repository at this point in the history
  • Loading branch information
stackoverfloweth committed Jan 23, 2025
1 parent 9cfa29e commit f68ffac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/resolved.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ResolvedRoute } from '@/types/resolved'
import { Route } from '@/types/route'

test('given a specific Route, params are narrow', () => {
type TestRoute = Route<'parentA', Host, Path<'/[paramA]', {}>, Query<'foo=[paramB]&bar=[?paramC]', { paramB: BooleanConstructor }>>
type TestRoute = Route<'parentA', Host<'', {}>, Path<'/[paramA]', {}>, Query<'foo=[paramB]&bar=[?paramC]', { paramB: BooleanConstructor }>>

type Source = RouterRoute<ResolvedRoute<TestRoute>>['params']
type Expect = { paramA: string, paramB: boolean, paramC?: string | undefined }
Expand Down

0 comments on commit f68ffac

Please sign in to comment.