-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathapi.json
76 lines (76 loc) · 4.58 KB
/
api.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"id": "qwik-router-middleware-cloudflare-pages",
"package": "@qwik.dev/qwik-router/middleware/cloudflare-pages",
"members": [
{
"name": "createQwikCity",
"id": "createqwikcity",
"hierarchy": [
{
"name": "createQwikCity",
"id": "createqwikcity"
}
],
"kind": "Variable",
"content": "> Warning: This API is now obsolete.\n> \n> Use `createQwikRouter` instead. Will be removed in V3\n> \n\n\n```typescript\ncreateQwikCity: typeof createQwikRouter\n```",
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik-router/src/middleware/cloudflare-pages/index.ts",
"mdFile": "router.createqwikcity.md"
},
{
"name": "createQwikRouter",
"id": "createqwikrouter",
"hierarchy": [
{
"name": "createQwikRouter",
"id": "createqwikrouter"
}
],
"kind": "Function",
"content": "```typescript\nexport declare function createQwikRouter(opts: QwikRouterCloudflarePagesOptions): (request: PlatformCloudflarePages[\"request\"], env: PlatformCloudflarePages[\"env\"] & {\n ASSETS: {\n fetch: (req: Request) => Response;\n };\n}, ctx: PlatformCloudflarePages[\"ctx\"]) => Promise<Response>;\n```\n\n\n<table><thead><tr><th>\n\nParameter\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\nopts\n\n\n</td><td>\n\n[QwikRouterCloudflarePagesOptions](#qwikroutercloudflarepagesoptions)\n\n\n</td><td>\n\n\n</td></tr>\n</tbody></table>\n**Returns:**\n\n(request: [PlatformCloudflarePages](#platformcloudflarepages)<!-- -->\\[\"request\"\\], env: [PlatformCloudflarePages](#platformcloudflarepages)<!-- -->\\[\"env\"\\] & { ASSETS: { fetch: (req: Request) => Response; }; }, ctx: [PlatformCloudflarePages](#platformcloudflarepages)<!-- -->\\[\"ctx\"\\]) => Promise<Response>",
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik-router/src/middleware/cloudflare-pages/index.ts",
"mdFile": "router.createqwikrouter.md"
},
{
"name": "PlatformCloudflarePages",
"id": "platformcloudflarepages",
"hierarchy": [
{
"name": "PlatformCloudflarePages",
"id": "platformcloudflarepages"
}
],
"kind": "Interface",
"content": "```typescript\nexport interface PlatformCloudflarePages \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[ctx](./router.platformcloudflarepages.ctx.md)\n\n\n</td><td>\n\n\n</td><td>\n\n{ waitUntil: (promise: Promise<any>) => void; }\n\n\n</td><td>\n\n\n</td></tr>\n<tr><td>\n\n[env?](./router.platformcloudflarepages.env.md)\n\n\n</td><td>\n\n\n</td><td>\n\nRecord<string, any>\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n<tr><td>\n\n[request](./router.platformcloudflarepages.request.md)\n\n\n</td><td>\n\n\n</td><td>\n\nRequest\n\n\n</td><td>\n\n\n</td></tr>\n</tbody></table>",
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik-router/src/middleware/cloudflare-pages/index.ts",
"mdFile": "router.platformcloudflarepages.md"
},
{
"name": "QwikCityCloudflarePagesOptions",
"id": "qwikcitycloudflarepagesoptions",
"hierarchy": [
{
"name": "QwikCityCloudflarePagesOptions",
"id": "qwikcitycloudflarepagesoptions"
}
],
"kind": "TypeAlias",
"content": "> Warning: This API is now obsolete.\n> \n> Use `QwikRouterCloudflarePagesOptions` instead. Will be removed in V3\n> \n\n\n```typescript\nexport type QwikCityCloudflarePagesOptions = QwikRouterCloudflarePagesOptions;\n```\n**References:** [QwikRouterCloudflarePagesOptions](#qwikroutercloudflarepagesoptions)",
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik-router/src/middleware/cloudflare-pages/index.ts",
"mdFile": "router.qwikcitycloudflarepagesoptions.md"
},
{
"name": "QwikRouterCloudflarePagesOptions",
"id": "qwikroutercloudflarepagesoptions",
"hierarchy": [
{
"name": "QwikRouterCloudflarePagesOptions",
"id": "qwikroutercloudflarepagesoptions"
}
],
"kind": "Interface",
"content": "```typescript\nexport interface QwikRouterCloudflarePagesOptions extends ServerRenderOptions \n```\n**Extends:** ServerRenderOptions",
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik-router/src/middleware/cloudflare-pages/index.ts",
"mdFile": "router.qwikroutercloudflarepagesoptions.md"
}
]
}