Skip to content

Commit

Permalink
docs: fix title for the code block (#12991)
Browse files Browse the repository at this point in the history
* .

* this is better?

* similar changes to other files

* Update documentation/docs/30-advanced/25-errors.md

---------

Co-authored-by: Chew Tee Ming <chew.tee.ming@nindatech.com>
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
  • Loading branch information
3 people authored Nov 13, 2024
1 parent 7b5c98d commit 7a17bd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/30-advanced/25-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7a17bd2

Please # to comment.