[]previous and next page

isNotFound

True for a not-found signal.

True for a not-found signal.

Import#

ts
import { isNotFound } from "@shadow-js/router";

Signature#

ts
function isNotFound(value: unknown): value is NotFoundSignal

Examples#

ts
import { isNotFound, notFound } from "@shadow-js/router/core";
isNotFound(notFound()); // true
isNotFound(new Error("missing")); // false