Skip to content

Commit df6829c

Browse files
committed
docs: Fix highlights for Collections page
1 parent 009d8ec commit df6829c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/rest/api/Collection.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ delay: 150,
5959
},
6060
]}>
6161

62-
```ts title="api/Todo" {15} collapsed
62+
```ts title="api/Todo" {13} collapsed
6363
export class Todo extends Entity {
6464
id = '';
6565
userId = 0;
@@ -71,11 +71,12 @@ export class Todo extends Entity {
7171

7272
export const getTodos = new RestEndpoint({
7373
path: '/todos',
74+
searchParams: {} as { userId?: string },
7475
schema: new schema.Collection([Todo]),
7576
});
7677
```
7778

78-
```ts title="api/User" {15-19} collapsed
79+
```ts title="api/User" {12-16} collapsed
7980
import { Todo } from './Todo';
8081

8182
export class User extends Entity {
@@ -287,7 +288,7 @@ when `push` is called.
287288

288289
<HooksPlayground fixtures={postFixtures} getInitialInterceptorData={getInitialInterceptorData} row>
289290

290-
```ts title="getPosts" {17}
291+
```ts title="getPosts" {14}
291292
import { Entity, RestEndpoint } from '@data-client/rest';
292293

293294
class Post extends Entity {
@@ -313,7 +314,7 @@ export const getPosts = new RestEndpoint({
313314
});
314315
```
315316

316-
```ts title="PostListLayout" collapsed
317+
```tsx title="PostListLayout" collapsed
317318
import { useLoading } from '@data-client/react';
318319

319320
export default function PostListLayout({
@@ -359,7 +360,7 @@ export default function PostListLayout({
359360
}
360361
```
361362

362-
```ts title="PostList" collapsed
363+
```tsx title="PostList" collapsed
363364
import { useSuspense, useController } from '@data-client/react';
364365
import { getPosts } from './getPosts';
365366
import PostListLayout from './PostListLayout';

0 commit comments

Comments
 (0)