0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-24 23:21:57 -05:00

[ci] format

This commit is contained in:
ematipico 2023-08-23 15:03:12 +00:00 committed by astrobot-houston
parent 0be8d9bfa9
commit 0eb7f19729

View file

@ -86,9 +86,9 @@ From an endpoint:
```js ```js
// src/pages/api/someFile.js // src/pages/api/someFile.js
export function get(context) { export function get(context) {
const runtime = context.locals.runtime; const runtime = context.locals.runtime;
return new Response("Some body"); return new Response('Some body');
} }
``` ```
@ -99,7 +99,7 @@ If you're using the `advanced` runtime, you can type the `runtime` object as fol
```ts ```ts
// src/env.d.ts // src/env.d.ts
/// <reference types="astro/client" /> /// <reference types="astro/client" />
import type { AdvancedRuntime } from "@astrojs/cloudflare" import type { AdvancedRuntime } from '@astrojs/cloudflare';
declare namespace App { declare namespace App {
interface Locals extends AdvancedRuntime { interface Locals extends AdvancedRuntime {
@ -116,7 +116,7 @@ If you're using the `directory` runtime, you can type the `runtime` object as fo
```ts ```ts
// src/env.d.ts // src/env.d.ts
/// <reference types="astro/client" /> /// <reference types="astro/client" />
import type { DirectoryRuntime } from "@astrojs/cloudflare" import type { DirectoryRuntime } from '@astrojs/cloudflare';
declare namespace App { declare namespace App {
interface Locals extends DirectoryRuntime { interface Locals extends DirectoryRuntime {