Skip to content

Commit 800097b

Browse files
committed
docs(qwik-city api): describe new loaders prop of QwikCityMockProps
1 parent e6a6463 commit 800097b

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

packages/docs/src/routes/api/qwik-city/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@
530530
}
531531
],
532532
"kind": "Interface",
533-
"content": "```typescript\nexport interface QwikCityMockProps \n```\n\n\n<table><thead><tr><th>\n\nProperty\n\n\n</th><th>\n\nModifiers\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\n[goto?](#)\n\n\n</td><td>\n\n\n</td><td>\n\n[RouteNavigate](#routenavigate)\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n<tr><td>\n\n[params?](#)\n\n\n</td><td>\n\n\n</td><td>\n\nRecord&lt;string, string&gt;\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n<tr><td>\n\n[url?](#)\n\n\n</td><td>\n\n\n</td><td>\n\nstring\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n</tbody></table>",
533+
"content": "```typescript\nexport interface QwikCityMockProps \n```\n\n\n<table><thead><tr><th>\n\nProperty\n\n\n</th><th>\n\nModifiers\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\n[goto?](#)\n\n\n</td><td>\n\n\n</td><td>\n\n[RouteNavigate](#routenavigate)\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n<tr><td>\n\n[loaders?](#)\n\n\n</td><td>\n\n\n</td><td>\n\n{ loader: LoaderConstructor; data: any; }\\[\\]\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n<tr><td>\n\n[params?](#)\n\n\n</td><td>\n\n\n</td><td>\n\nRecord&lt;string, string&gt;\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n<tr><td>\n\n[url?](#)\n\n\n</td><td>\n\n\n</td><td>\n\nstring\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n</tbody></table>",
534534
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik-city/src/runtime/src/qwik-city-component.tsx",
535535
"mdFile": "qwik-city.qwikcitymockprops.md"
536536
},

packages/docs/src/routes/api/qwik-city/index.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,6 +1779,21 @@ _(Optional)_
17791779
</td></tr>
17801780
<tr><td>
17811781
1782+
[loaders?](#)
1783+
1784+
</td><td>
1785+
1786+
</td><td>
1787+
1788+
\{ loader: LoaderConstructor; data: any; }[]
1789+
1790+
</td><td>
1791+
1792+
_(Optional)_
1793+
1794+
</td></tr>
1795+
<tr><td>
1796+
17821797
[params?](#)
17831798
17841799
</td><td>

packages/qwik-city/src/runtime/src/qwik-city.runtime.api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,13 @@ export const QWIK_CITY_SCROLLER = "_qCityScroller";
331331
// @public (undocumented)
332332
export interface QwikCityMockProps {
333333
// (undocumented)
334-
loaders?: loaders?: {
334+
goto?: RouteNavigate;
335+
// (undocumented)
336+
loaders?: {
335337
loader: LoaderConstructor;
336338
data: any;
337339
}[];
338340
// (undocumented)
339-
goto?: RouteNavigate;
340-
// (undocumented)
341341
params?: Record<string, string>;
342342
// (undocumented)
343343
url?: string;

0 commit comments

Comments
 (0)