Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions apps/svelte.dev/content/docs/kit/98-reference/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
VERSION,
error,
fail,
isActionFailure,
isHttpError,
isRedirect,
json,
Expand Down Expand Up @@ -86,6 +87,22 @@ function fail<



## isActionFailure

Checks whether this is an action failure thrown by `fail`.

<div class="ts-block">

```dts
function isActionFailure(
e: unknown
): e is ActionFailure<undefined>;
```

</div>



## isHttpError

Checks whether this is an error thrown by `error`.
Expand Down