From 7a17bd2712203ca8ec3a3343174a8e4185729bfa Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 13 Nov 2024 11:12:31 +0800 Subject: [PATCH] docs: fix title for the code block (#12991) * . * this is better? * similar changes to other files * Update documentation/docs/30-advanced/25-errors.md --------- Co-authored-by: Chew Tee Ming Co-authored-by: Tee Ming --- documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md | 2 +- .../docs/25-build-and-deploy/70-adapter-cloudflare-workers.md | 2 +- documentation/docs/30-advanced/25-errors.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md b/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md index b1dea91bdd6b..3704dc0454b8 100644 --- a/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md +++ b/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md @@ -84,7 +84,7 @@ export async function POST({ request, platform }) { To include type declarations for your bindings, reference them in your `src/app.d.ts`: -```dts +```ts /// file: src/app.d.ts declare global { namespace App { diff --git a/documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md b/documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md index 6635f566d38a..b4e270f62283 100644 --- a/documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md +++ b/documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md @@ -105,7 +105,7 @@ export async function POST({ request, platform }) { To include type declarations for your bindings, reference them in your `src/app.d.ts`: -```dts +```ts /// file: src/app.d.ts declare global { namespace App { diff --git a/documentation/docs/30-advanced/25-errors.md b/documentation/docs/30-advanced/25-errors.md index 7449b5137723..5fd17455add9 100644 --- a/documentation/docs/30-advanced/25-errors.md +++ b/documentation/docs/30-advanced/25-errors.md @@ -126,7 +126,7 @@ The exception is when the error occurs inside the root `+layout.js` or `+layout. If you're using TypeScript and need to customize the shape of errors, you can do so by declaring an `App.Error` interface in your app (by convention, in `src/app.d.ts`, though it can live anywhere that TypeScript can 'see'): -```dts +```ts /// file: src/app.d.ts declare global { namespace App {