Skip to content

Commit

Permalink
silence errors (the satisfies-equivalent of 2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Dec 9, 2022
1 parent ca3b8a7 commit dfd8fbd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion documentation/docs/20-core-concepts/20-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export async function load({ cookies }) {
Both server-only and shared `load` functions have access to a `setHeaders` function that, when running on the server, can set headers for the response. (When running in the browser, `setHeaders` has no effect.) This is useful if you want the page to be cached, for example:

```js
// @errors: 2322
// @errors: 2322 1360
/// file: src/routes/products/+page.js
/** @type {import('./$types').PageLoad} */
export async function load({ fetch, setHeaders }) {
Expand Down
4 changes: 2 additions & 2 deletions documentation/docs/30-advanced/20-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ declare namespace App {

```js
/// file: src/hooks.server.js
// @errors: 2322 2571 2339
// @errors: 2322 1360 2571 2339
// @filename: ambient.d.ts
const Sentry: any;

Expand All @@ -177,7 +177,7 @@ export function handleError({ error, event }) {
```js
/// file: src/hooks.client.js
// @errors: 2322 2571 2339
// @errors: 2322 1360 2571 2339
// @filename: ambient.d.ts
const Sentry: any;

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 @@ -81,7 +81,7 @@ Unexpected errors will go through the [`handleError`](/docs/hooks#shared-hooks-h

```js
/// file: src/hooks.server.js
// @errors: 2322 2571 2339
// @errors: 2322 1360 2571 2339
// @filename: ambient.d.ts
const Sentry: any;

Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/50-reference/40-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The `RequestHandler` and `Load` types both accept a `Params` argument allowing y

```js
/// file: src/routes/[foo]/[bar]/[baz]/+page.server.js
// @errors: 2355 2322
// @errors: 2355 2322 1360
/** @type {import('@sveltejs/kit').RequestHandler<{
* foo: string;
* bar: string;
Expand Down

0 comments on commit dfd8fbd

Please sign in to comment.