Skip to content

Commit 0b65b4a

Browse files
authored
Merge pull request #15 from excal1bu7/patch-1
fix: typo in protected-route
2 parents ad6b7d2 + 33bb849 commit 0b65b4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/examples/protected-route.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ Then, we can create a simple wrapper:
3232

3333
```ts
3434
// @/shared/route
35-
import { chainRoute, RouteInstance, RouteParamsAndQuery } from 'atomic-router';
35+
import { chainRoute, RouteParams, RouteInstance, RouteParamsAndQuery } from 'atomic-router';
3636
import { createEvent } from 'effector';
3737

3838
import { $isAuthorized, tokenReceived } from '@/shared/auth';
3939

40-
export function chainAuthorized<Params>(route: RouteInstance<Params>) {
40+
export function chainAuthorized<Params extends RouteParams>(route: RouteInstance<Params>) {
4141
const sessionCheckStarted = createEvent<RouteParamsAndQuery<Params>>();
4242

4343
const alreadyAuthorized = sample({

0 commit comments

Comments
 (0)