Skip to content

Commit 175a8f2

Browse files
Sync kit docs (#818)
sync kit docs Co-authored-by: Rich-Harris <1162160+Rich-Harris@users.noreply.github.com>
1 parent 5daa90b commit 175a8f2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

apps/svelte.dev/content/docs/kit/98-reference/10-@sveltejs-kit.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
VERSION,
1111
error,
1212
fail,
13+
isActionFailure,
1314
isHttpError,
1415
isRedirect,
1516
json,
@@ -86,6 +87,22 @@ function fail<
8687

8788

8889

90+
## isActionFailure
91+
92+
Checks whether this is an action failure thrown by `fail`.
93+
94+
<div class="ts-block">
95+
96+
```dts
97+
function isActionFailure(
98+
e: unknown
99+
): e is ActionFailure<undefined>;
100+
```
101+
102+
</div>
103+
104+
105+
89106
## isHttpError
90107

91108
Checks whether this is an error thrown by `error`.

0 commit comments

Comments
 (0)